summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}