From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Thu, 5 Oct 2006 16:43:13 -0400 From: "Russ Cox" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Binit and Bterm In-Reply-To: <8eeb3016afcfba5a3719301de1824a5f@plan9.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8eeb3016afcfba5a3719301de1824a5f@plan9.jp> Topicbox-Message-UUID: c5e2f3d4-ead1-11e9-9d60-3106f5b1d025 The only buffer is on the stack inside the Biobuf. There is no dynamic allocation in this case. Russ On 10/5/06, Joel "chesky" Salomon wrote: > > since you are just doing reads then no i don't believe > > the Bterm is necessary. > > So will Binit properly reinitialize its argument, reusing the buffers > rather than allocating new ones and leaking the old? > > --Joel > >