From owner-freebsd-current Fri Oct 25 23:07:48 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA01310 for current-outgoing; Fri, 25 Oct 1996 23:07:48 -0700 (PDT) Received: from critter.tfs.com ([140.145.230.177]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id XAA01301; Fri, 25 Oct 1996 23:07:43 -0700 (PDT) Received: from critter.tfs.com (localhost.tfs.com [127.0.0.1]) by critter.tfs.com (8.7.5/8.7.3) with ESMTP id IAA15975; Sat, 26 Oct 1996 08:07:50 +0200 (MET DST) 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 In-reply-to: Your message of "Sat, 26 Oct 1996 06:39:38 +1000." <199610252039.GAA28193@sdev.usn.blaze.net.au> Date: Sat, 26 Oct 1996 08:07:50 +0200 Message-ID: <15973.846310070@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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.