From 44c8c165462ee0a5e7050893c5379638691708cd Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 26 Nov 2002 17:03:16 +0000 Subject: Fix bug in tdb_fetch tidyup. Jeremy. (This used to be commit 88d081e06428f02bcde8ceed8d86835c9222c3a9) --- source3/libsmb/namecache.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/libsmb/namecache.c b/source3/libsmb/namecache.c index ce4cbc048c..4304197a26 100644 --- a/source3/libsmb/namecache.c +++ b/source3/libsmb/namecache.c @@ -196,7 +196,6 @@ BOOL namecache_fetch(const char *name, int name_type, struct in_addr **ip_list, tdb_delete(namecache_tdb, key); - SAFE_FREE(value.dptr); value = tdb_null; goto done; @@ -211,7 +210,6 @@ BOOL namecache_fetch(const char *name, int name_type, struct in_addr **ip_list, tdb_delete(namecache_tdb, key); - SAFE_FREE(value.dptr); value = tdb_null; goto done; @@ -241,7 +239,7 @@ BOOL namecache_fetch(const char *name, int name_type, struct in_addr **ip_list, done: SAFE_FREE(key.dptr); - SAFE_FREE(value.dptr); + SAFE_FREE(data); return value.dsize > 0; } -- cgit