svn commit: samba r13510 - branches/SAMBA_3_0/source/nmbd
trunk/source/nmbd
jerry at samba.org
jerry at samba.org
Wed Feb 15 18:22:01 GMT 2006
Author: jerry
Date: 2006-02-15 18:22:00 +0000 (Wed, 15 Feb 2006)
New Revision: 13510
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13510
Log:
plug memory leak in WINS server code.
Modified:
branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c
trunk/source/nmbd/nmbd_winsserver.c
Changeset:
Modified: branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c
===================================================================
--- branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c 2006-02-15 18:21:13 UTC (rev 13509)
+++ branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c 2006-02-15 18:22:00 UTC (rev 13510)
@@ -207,6 +207,11 @@
}
namerec = wins_record_to_name_record(key, data);
+
+ /* done with the this */
+
+ SAFE_FREE( data.dptr );
+
if (!namerec) {
return NULL;
}
Modified: trunk/source/nmbd/nmbd_winsserver.c
===================================================================
--- trunk/source/nmbd/nmbd_winsserver.c 2006-02-15 18:21:13 UTC (rev 13509)
+++ trunk/source/nmbd/nmbd_winsserver.c 2006-02-15 18:22:00 UTC (rev 13510)
@@ -207,6 +207,11 @@
}
namerec = wins_record_to_name_record(key, data);
+
+ /* done with the this */
+
+ SAFE_FREE( data.dptr );
+
if (!namerec) {
return NULL;
}
More information about the samba-cvs
mailing list