Date: Fri, 20 Jun 1997 03:17:12 +0100 From: Brian Somers <brian@awfulhak.org> To: David Dawes <dawes@rf900.physics.usyd.edu.au> Cc: hackers@FreeBSD.ORG Subject: Re: xperfmon++ problem (again) Message-ID: <199706200217.DAA29697@awfulhak.demon.co.uk> In-Reply-To: Your message of "Fri, 20 Jun 1997 11:18:39 %2B1000." <19970620111839.40700@rf900.physics.usyd.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
[.....] > >FWIW, this is the patch - it solves my knews problem, but isn't > >*really* the right answer :| Copy it to > >/usr/ports/x11/XFree86/patches/patch-af, and just "make". > > The right answer in my opinion is to change the definition of > Malloc0ReturnsNULL back to YES in FreeBSD.cf. That won't cause > any problems for the case where malloc(0) returns a non-NULL pointer. Are you sure that when Malloc0ReturnsNULL is set to YES, pointer values returned from malloc(0) are freed ? Maybe there's some nasty code that says something like #if !Malloc0ReturnsNUL /* or whatever */ if (!mallocSize) free(ptr); #endif although I'd hope not ! > David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706200217.DAA29697>