From e78289f167363f3617f7417f7e25de369ea22d7f Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 22 Mar 2010 20:12:13 +0100 Subject: s4:registry - "samba.c" - add a "talloc_free" --- source4/lib/registry/samba.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit