summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-02-15 18:22:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:08 -0500
commitfbe02a6021f339c14b278d1ac706702dcedd8aff (patch)
tree3eb99d4be5a50d4017c85dc96a17d5657ed923fb
parent04af2ab06ec40ffb0cf533d862a884813957dcf3 (diff)
downloadsamba-fbe02a6021f339c14b278d1ac706702dcedd8aff.tar.gz
samba-fbe02a6021f339c14b278d1ac706702dcedd8aff.tar.bz2
samba-fbe02a6021f339c14b278d1ac706702dcedd8aff.zip
r13510: plug memory leak in WINS server code.
(This used to be commit 381c327a65489bf8b0fd4935662ca1df6f9e1183)
-rw-r--r--source3/nmbd/nmbd_winsserver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c
index 9983efe5eb..ddc9edfb06 100644
--- a/source3/nmbd/nmbd_winsserver.c
+++ b/source3/nmbd/nmbd_winsserver.c
@@ -207,6 +207,11 @@ struct name_record *find_name_on_wins_subnet(const struct nmb_name *nmbname, BOO
}
namerec = wins_record_to_name_record(key, data);
+
+ /* done with the this */
+
+ SAFE_FREE( data.dptr );
+
if (!namerec) {
return NULL;
}