libsmbclient again :|

dzvine dzvine at hotpop.com
Fri Mar 21 07:28:42 GMT 2003


Hello samba-technical,

 i wrote a simple app using this lib and noticed huge memory leaks. My
 code is just simple sequence like:
      smbc_init()
      while()
      {
             smbc_opendir() ;
             smbc_getdents() ;
             smbc_closedir();
      }
 but library leaks a lot of memory, i noticed the hugest leaks are
 because of ?? uninitialized ?? client/server connections? also 12-20
 bytes leaks in pstrings ?

 after scanning a network of about 200 computers it eats up to 30-40MB
 of ram( depending on file/share amount)....
 
 any one got idea how to gracefully free that memory or i have to
 "hack" all of it on my own :)) ?
 
-- 
Best regards,
 dzvine                          mailto:dzvine at hotpop.com



More information about the samba-technical mailing list