diff options
-rw-r--r-- | source4/lib/registry/samba.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/registry/samba.c b/source4/lib/registry/samba.c index b04dcc75cd..f4949939c9 100644 --- a/source4/lib/registry/samba.c +++ b/source4/lib/registry/samba.c @@ -48,6 +48,8 @@ static WERROR mount_samba_hive(struct registry_context *ctx, error = reg_open_ldb_file(ctx, location, auth_info, creds, event_ctx, lp_ctx, &hive); + talloc_free(discard_const_p(char, location)); + if (!W_ERROR_IS_OK(error)) return error; |