Memory leak in cli_query_secdesc api

Tim Potter tpot at samba.org
Wed Jul 23 01:22:54 GMT 2003


On Tue, Jul 22, 2003 at 03:33:31PM -0500, Brett A. Funderburg wrote:

> Poor formatting munged the script the first time...Corrected version
> below.

Brett, this should be fixed in CVS now.  The python object that held
a SMB connection wasn't freeing the cli_struct it held when being
garbage collected.  Also applied is the other memory leak you sent
to me in private mail.

I've run your test program through valgrind and it shows no more
leaks now.  It also works without the explicit disposal of the 
return data from the query_secdesc method.


Regards,

Tim.



More information about the samba-technical mailing list