Malloc while freeing some object
Roman Kurakin
rik at cronyx.ru
Thu Jun 30 18:33:06 GMT 2005
Dmitry Mityugov wrote:
>On 6/30/05, Roman Kurakin <rik at 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
More information about the freebsd-hackers
mailing list