samba-cvs.cvs
[Top] [All Lists]

svn commit: samba r13510 - branches/SAMBA_3_0/source/nmbd trunk/source/n

Subject: svn commit: samba r13510 - branches/SAMBA_3_0/source/nmbd trunk/source/nmbd
From:
Date: Wed, 15 Feb 2006 18:22:01 +0000 GMT
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;
        }

<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: samba r13510 - branches/SAMBA_3_0/source/nmbd trunk/source/nmbd, jerry <=