Memory leaks
Atsushi Nakabayashi
nakabayashi at miraclelinux.com
Fri Jul 27 01:37:47 GMT 2007
Hi, samba-tech,
I have found a memory leak in the error path of the samba-3.0.24.
--- source/lib/messages.c
237 if (timeout) {
238 if (tdb_chainlock_with_timeout(tdb,
kbuf, timeout) == -1) {
239
DEBUG(0,("message_send_pid_internal: failed to get chainlock with
timeout %ul.\n", timeout));
240 return False;
241 }
242 } else {
243 if (tdb_chainlock(tdb, kbuf) == -1) {
244
DEBUG(0,("message_send_pid_internal: failed to get chainlock.\n"));
245 return False;
246 }
The dbuf.dptr is not released, when tdb_chainlock function returns -1.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba-3.0.24-memleaks.patch
Type: text/x-patch
Size: 1103 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070727/f2b530be/samba-3.0.24-memleaks.bin
More information about the samba-technical
mailing list