[MPlayer-dev-eng] Re: [PATCH] esd: support non-default tcp port
Joerg Sonnenberger
joerg at britannica.bec.de
Mon Oct 10 01:01:48 CEST 2005
On Sun, Oct 09, 2005 at 11:51:14PM +0200, Németh Márton wrote:
> Hi,
>
> In this patch the AO_ESD_FREE_BUFFER was removed. I am using now the code:
>
> if (server) free(server);
>
> but in the "ISO/IEC 9899 - Programming languages - C", Chapter 7.20.3.2:
> "The free function", one can read the following
> (The document is available from:
> http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf ) :
>
> > void free(void *ptr);
> >
> > The free function causes the space pointed to by ptr to be
> > deallocated, that is, made available for further allocation.
> > If ptr is a null pointer, no action occurs.
>
> This means, that
> free(server);
> maybe enough, and we do not have to test against NULL.
>
> Is it working so in the practice, too?
Yes, any platform which broke that is not worth thinking about.
Joerg
More information about the MPlayer-dev-eng
mailing list