On Mon, 22 Mar 2010 21:44:45 -0400
Anurag Maskey <Anurag.Maskey at Sun.COM> wrote:
[...]
> The order of the malloc()s and free()s are different. The new handle is
> read first, and then the old handle is released (in
> nwamd_enm_handle_init_event()), so it is technically a x = malloc(N), y
> = malloc(N), free(x), x = y.
If you can prove that the handle will never be free'd before it is
realloc'd (reread) then your comparison is fine. Since you free the
release before calling the enm callout I'm not sure how you do that.
Michael
>
> Anurag
>
> _______________________________________________
> nwam-dev mailing list
> nwam-dev at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/nwam-dev