1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

registry: Fix warning freeing talloc pointer with multiple parents.

This commit is contained in:
Jelmer Vernooij 2009-09-26 15:41:22 +02:00
parent 6b595a93c1
commit 169ff6efea

View File

@ -2144,7 +2144,7 @@ WERROR reg_open_regf_file(TALLOC_CTX *parent_ctx, const char *location,
regf->header->data_offset);
/* We can drop our own reference now that *key will have created one */
talloc_free(regf);
talloc_unlink(parent_ctx, regf);
return WERR_OK;
}