Date: Sat, 26 Oct 1996 08:07:50 +0200 From: Poul-Henning Kamp <phk@critter.tfs.com> To: davidn@sdev.usn.blaze.net.au (David Nugent) Cc: ejc@gargoyle.bazzle.com (Eric J. Chet), freebsd-current@FreeBSD.ORG Subject: Re: -current as of 10/23/96 Message-ID: <15973.846310070@critter.tfs.com> In-Reply-To: Your message of "Sat, 26 Oct 1996 06:39:38 %2B1000." <199610252039.GAA28193@sdev.usn.blaze.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <199610252039.GAA28193@sdev.usn.blaze.net.au>, David Nugent writes: > >The most likely scenario is something like this: > > free(xyz); > shf_close(xyz->shf); Or this one, which phkmalloc also shoots down now: while (something) { oldfoo=foo; [...] if (size > foosize) { foo = realloc(foo, foosize + more); foosize += more; } [...] if (foo->index != oldfoo->index) { [...] } } -- 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. Future will arrive by its own means, progress not so.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15973.846310070>