Memory leaks

Atsushi Nakabayashi nakabayashi at miraclelinux.com
Wed Jun 20 02:26:53 GMT 2007


Hi, samba-tech,

 I have found a memory leak in the error route of the samba-3.0.24.

 --- source/nmbd/nmbd_winsserver.c
 2327         /* We will do the writing in a child process to ensure 
that the parent doesn't block while this is done */
 2328         if (background) {
 2329                 CatchChild();
 2330                 if (sys_fork()) {
 2331                         return;
 2332                 }
 2333                 if (tdb_reopen(wins_tdb)) {
 2334                         DEBUG(0,("wins_write_database: tdb_reopen 
failed. Error was %s\n",
 2335                                 strerror(errno)));
 2336                         return;
 2337                 }

 The child process is not released, when the tdb_reopen function returns 
false(-1).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba-3.0.24-memleak.patch
Type: text/x-patch
Size: 496 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070620/2e6fec04/samba-3.0.24-memleak.bin


More information about the samba-technical mailing list