Re: Malloc while freeing some object

From: Roman Kurakin (rik_at_cronyx.ru)
Date: 06/30/05

  • Next message: Jos Backus: "Re: Suurce code navigation tools with call graph?"
    Date: Thu, 30 Jun 2005 22:27:24 +0400
    To: Dmitry Mityugov <dmitry.mityugov@gmail.com>
    
    

    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

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Jos Backus: "Re: Suurce code navigation tools with call graph?"

    Relevant Pages

    • Re: Malloc while freeing some object
      ... On 6/30/05, Roman Kurakin wrote: ... > One simple question on programming style. ... > to call malloc while we releasing some object? ... Are you releasing it in another thread? ...
      (freebsd-hackers)
    • Malloc while freeing some object
      ... to call malloc while we releasing some object? ... To unsubscribe, ...
      (freebsd-hackers)