summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-17 01:17:15 +0100
committerMichael Adam <obnox@samba.org>2008-03-17 08:22:33 +0100
commitecd7479be2840642a1fd48f214d739390d1d4c72 (patch)
tree31e176722d9853ab83cdc333ae2379fe32f25369 /source3
parent3b250d17d915718700a694fececcef6fbe059fe1 (diff)
downloadsamba-ecd7479be2840642a1fd48f214d739390d1d4c72.tar.gz
samba-ecd7479be2840642a1fd48f214d739390d1d4c72.tar.bz2
samba-ecd7479be2840642a1fd48f214d739390d1d4c72.zip
registry: don't leak to talloc stack in regdb_fetch_keys().
Michael (This used to be commit 3a1d79116b693bc25af1106c9a43ffd275ac3d1e)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_backend_db.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index bac75fae14..5a824d3397 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -666,7 +666,8 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
rec = regdb->fetch_locked(regdb, frame, string_term_tdb_data(path));
if (rec == NULL) {
- return 0;
+ ret = 0;
+ goto fail;
}
ctr->seqnum = regdb_get_seqnum();