[vlc-devel] Re: [PATCH] Allow configuration of JACK connections

Rémi Denis-Courmont rem at videolan.org
Thu Apr 12 18:53:19 CEST 2007

Le jeudi 12 avril 2007 14:19, Jon Griffiths a écrit :
> The calloc() ensures that the structure members are null, so the
> error handling code doesn't try to free any memory that hasn't been
> allocated.

If you follow that logic to its end, you don't need to check for 
non-null-ity before invoking free() since free(NULL) is a no-op.

Rémi Denis-Courmont
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070412/5249ecbe/attachment.sig>

More information about the vlc-devel mailing list