summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/registry')
-rw-r--r--source4/lib/registry/local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/local.c b/source4/lib/registry/local.c
index 2ca31ec0eb..be48729f79 100644
--- a/source4/lib/registry/local.c
+++ b/source4/lib/registry/local.c
@@ -58,7 +58,7 @@ struct registry_key *reg_import_hive_key(struct registry_context *ctx,
local_key = talloc(ctx, struct local_key);
if (local_key != NULL) {
- local_key->hive_key = talloc_steal(local_key, hive);
+ local_key->hive_key = talloc_reference(local_key, hive);
local_key->global.context = talloc_reference(local_key, ctx);
local_key->path = parent_path;
}