Date: Thu, 30 Jun 2005 22:27:24 +0400 From: Roman Kurakin <rik@cronyx.ru> To: Dmitry Mityugov <dmitry.mityugov@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Malloc while freeing some object Message-ID: <42C4398C.5060808@cronyx.ru> In-Reply-To: <b7052e1e050630110261e94f22@mail.gmail.com> References: <42C424EA.70306@cronyx.ru> <b7052e1e050630110261e94f22@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Dmitry Mityugov wrote: >On 6/30/05, Roman Kurakin <rik@cronyx.ru> wrote: > > >>Hi, >> >> One simple question on programming style. Is it ok >>to call malloc while we releasing some object? >> >> >Are you releasing it in another thread? Is it a C++ object? How are > >you releasing it? > > This was general question. In fact I've found that ttyfree() function from kernel code allocates tempory variables to free tty. I didn't expect such behaviour. I always thought that deallocation of smth should need other alloc. rik
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42C4398C.5060808>