Date: Fri, 21 Aug 1998 16:26:47 +0200 From: Eivind Eklund <eivind@yes.no> To: Warner Losh <imp@village.org>, Brian Somers <brian@Awfulhak.org> Cc: Archie Cobbs <archie@whistle.com>, Nate Williams <nate@mt.sri.com>, hackers@FreeBSD.ORG Subject: Re: Realloc fix for review Message-ID: <19980821162647.47092@follo.net> In-Reply-To: <199808210309.VAA26640@harmony.village.org>; from Warner Losh on Thu, Aug 20, 1998 at 09:08:59PM -0600 References: <199808210107.CAA13727@awfulhak.org> <199808210309.VAA26640@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 20, 1998 at 09:08:59PM -0600, Warner Losh wrote: > In message <199808210107.CAA13727@awfulhak.org> Brian Somers writes: > : AFAIK not all free() implementations ignore a NULL pointer (although > : FreeBSD's does). But then, not all realloc() implementations allow a > : NULL either (FreeBSD's does) :-/ > > free(NULL); is required to be valid by tha ANSI standard. I don't > know about the realloc(NULL, s); case, however. Required. The same goes for realloc(pointer, 0) being the same as free(). Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980821162647.47092>