1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

registry: don't leak (to talloc_tos()) in regdb_store_keys_internal().

Michael
(This used to be commit 76e4cdc25f)
This commit is contained in:
Michael Adam 2008-03-17 00:09:07 +01:00
parent 8432f7f8cf
commit a446378e7a

View File

@ -386,7 +386,7 @@ static bool regdb_store_keys_internal(const char *key, REGSUBKEY_CTR *ctr)
bool ret = true;
uint32 num_subkeys = regsubkey_ctr_numkeys(ctr);
char *keyname = NULL;
TALLOC_CTX *ctx = talloc_tos();
TALLOC_CTX *ctx = talloc_stackframe();
NTSTATUS status;
if (!key) {
@ -439,6 +439,7 @@ static bool regdb_store_keys_internal(const char *key, REGSUBKEY_CTR *ctr)
}
done:
TALLOC_FREE(ctx);
SAFE_FREE( buffer );
return ret;
}