summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-06 17:15:50 +0200
committerMichael Adam <obnox@samba.org>2008-05-08 18:29:08 +0200
commit120aacfac5b4f561999e84a325f53cbd5783fefc (patch)
tree135e41d162d24547d659fb665c4886e88ebebb97
parent79a009b876f9679ed054775ebf0dda479484f827 (diff)
downloadsamba-120aacfac5b4f561999e84a325f53cbd5783fefc.tar.gz
samba-120aacfac5b4f561999e84a325f53cbd5783fefc.tar.bz2
samba-120aacfac5b4f561999e84a325f53cbd5783fefc.zip
registry: free temporary data in regdb_fetch_key_internal().
Michael (This used to be commit 2b25f480ba13ae125d081bab55ee3cbd3c4f425a)
-rw-r--r--source3/registry/reg_backend_db.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 638d9b144c..d1ec8e4b61 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -756,13 +756,17 @@ fail:
static TDB_DATA regdb_fetch_key_internal(TALLOC_CTX *mem_ctx, const char *key)
{
char *path = NULL;
+ TDB_DATA data;
path = normalize_reg_path(mem_ctx, key);
if (!path) {
return make_tdb_data(NULL, 0);
}
- return dbwrap_fetch_bystring(regdb, mem_ctx, path);
+ data = dbwrap_fetch_bystring(regdb, mem_ctx, path);
+
+ TALLOC_FREE(path);
+ return data;
}