On Wed, 24 Feb 1999, Glynn Clements wrote:

> It is necessary to call free() if you wish to re-use the memory from
> within the same process. E.g. a long-running daemon needs to free
> memory when it is no longer used or else it will eventually consume
> all available memory.
> 
> In general, programs should free memory once they are no longer using
> it, as this allows them to re-use that memory. Otherwise, subsequent
> calls to malloc() will result in the application being allocated more
> memory.
> 
> No. There is nothing to gain from calling free() if the program will
> terminate shortly, and won't attempt to malloc() any more memory in
> the meantime.

 Thanks for the explanation ! :)

 Best regards,
    Nuno Carvalho

иииииииииииииииииииииииииииииииии
   Nuno Emanuel F. Carvalho
 Dep. Informatics Engineering
    University of Coimbra

  PGP key available at finger
иииииииииииииииииииииииииииииииии

Reply via email to