summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-11-26 17:03:16 +0000
committerJeremy Allison <jra@samba.org>2002-11-26 17:03:16 +0000
commit44c8c165462ee0a5e7050893c5379638691708cd (patch)
treec67539d157c6e3c707b4ac3b3f64b5ed350524ed
parente8ac5004b0ef131106e8d931bc75d9dd2814dff5 (diff)
downloadsamba-44c8c165462ee0a5e7050893c5379638691708cd.tar.gz
samba-44c8c165462ee0a5e7050893c5379638691708cd.tar.bz2
samba-44c8c165462ee0a5e7050893c5379638691708cd.zip
Fix bug in tdb_fetch tidyup.
Jeremy. (This used to be commit 88d081e06428f02bcde8ceed8d86835c9222c3a9)
-rw-r--r--source3/libsmb/namecache.c4
1 files changed, 1 insertions, 3 deletions
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;
}