Date: Thu, 15 Aug 2002 06:11:46 -0700 (PDT) From: Tony Finch <fanf@FreeBSD.org> To: hovik@melikyan.com, fanf@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: misc/41684: realloc() to 0 loses 16 bytes of memory regardless of the previous block size Message-ID: <200208151311.g7FDBkIS030052@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: realloc() to 0 loses 16 bytes of memory regardless of the previous block size State-Changed-From-To: open->closed State-Changed-By: fanf State-Changed-When: Thu Aug 15 06:09:34 PDT 2002 State-Changed-Why: Not a bug. Both malloc(0) and realloc(p, 0) may return non-NULL, in which case the pointer must be free()ed in order to prevent a memory leak. http://www.freebsd.org/cgi/query-pr.cgi?pr=41684 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208151311.g7FDBkIS030052>