Thanks, guys!!

On Tue, Nov 19, 2013 at 6:12 AM, Ben Noordhuis <[email protected]> wrote:

> On Mon, Nov 18, 2013 at 10:23 PM, Aaron Boxer <[email protected]> wrote:
> > In the code below, do I need to free the client, or will it be done by
> > uv_close?
> >
> > Thanks!
> > Aaron
> >
> >
> > ///////////////////////////////////////////////////////
> > uv_tcp_t* client  =  ( uv_tcp_t * )  malloc ( sizeof ( uv_tcp_t ));
> >
> > ...
> >
> >
> >  uv_close (( uv_handle_t * )  client ,  NULL );
>
> You should free it yourself but only from the close callback.  You can
> use `uv_close(handle, (uv_close_cb) free)` for that.
>
> --
> You received this message because you are subscribed to the Google Groups
> "libuv" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/libuv.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to