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:
parent
6b595a93c1
commit
169ff6efea
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user