From fbe02a6021f339c14b278d1ac706702dcedd8aff Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 15 Feb 2006 18:22:00 +0000 Subject: r13510: plug memory leak in WINS server code. (This used to be commit 381c327a65489bf8b0fd4935662ca1df6f9e1183) --- source3/nmbd/nmbd_winsserver.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3') 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; } -- cgit