summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-22 20:12:13 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-22 22:31:05 +0100
commite78289f167363f3617f7417f7e25de369ea22d7f (patch)
tree6f365bd263ea3144b4e3e349191f86d0c95d1781
parentdc17292f1a097d3abd8c391315b661034ab1914e (diff)
downloadsamba-e78289f167363f3617f7417f7e25de369ea22d7f.tar.gz
samba-e78289f167363f3617f7417f7e25de369ea22d7f.tar.bz2
samba-e78289f167363f3617f7417f7e25de369ea22d7f.zip
s4:registry - "samba.c" - add a "talloc_free"
-rw-r--r--source4/lib/registry/samba.c2
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;