www.a00.de > tcpgroup > 1991 > msg00013
 

TCP-group 1991


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NOS memory leak identified



Hi folks,
Somewhere between the 900828 version and the 901128 version there was
a bug introduced in dirutil.c.  In the function dodir(), the argv
parameter for the call to domore() is dynamically allocated.  In the
old version, this was freed by calling freeargs, and in the new version
the call is missing.  The result is that you get 2 more mallocs than
frees every time you get a directory listing.  I suspect that this
is related to the fact that newproc() now has a flag as one of its
parameters to specify whether arguments should be freed on termination
of the process. The problem is, in this case the command is not
associated with  new process, only a new session.

We're not talking about much memory here, but every little bit helps :-)
Dave





Document URL : http://www.a00.de/tcpgroup/1991/msg00013.php
Ralf D. Kloth, Ludwigsburg, DE (QRQ.software). < hostmaster at a00.de > [don't send spam]
Created 2004-12-21. Last modified 2004-12-21. Your visit 2024-12-26 11:30.16. Page created in 0.023 sec.
 
[Go to the top of this page]   [... to the index page]