Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 1995 03:49:28 -0700 (PDT)
From:      Poul-Henning Kamp <phk>
To:        phk@freefall.cdrom.com (Poul-Henning Kamp)
Cc:        hackers@freebsd.org
Subject:   Re: new malloc.c please test
Message-ID:  <199507241049.DAA15191@freefall.cdrom.com>
In-Reply-To: <199507241032.DAA14618@freefall.cdrom.com> from "Poul-Henning Kamp" at Jul 24, 95 03:32:03 am

next in thread | previous in thread | raw e-mail | index | archive | help
> OK, here is the next version of my "new" malloc.c  This one is running
> in my libc right now, and giving no problems so far.

Yet another detail:  FreeBSD tolerates NULL as argument to free(),
my code didn't.

Please add
	if (!ptr)
	    return;

In the top of the free() procedure.

-- 
Poul-Henning Kamp           | phk@FreeBSD.ORG       FreeBSD Core-team.
http://www.freebsd.org/~phk | phk@login.dknet.dk    Private mailbox.
whois: [PHK]                | phk@ref.tfs.com       TRW Financial Systems, Inc.
Just that: dried leaves in boiling water ?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507241049.DAA15191>