summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-03 00:14:26 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-03 00:14:26 +0100
commit1575cae7e53a5738d7e2530e855aef68ca971706 (patch)
treef6074ff4ae1fee19849bf240e6065c045effaa26 /source4
parentb45caa44e1a563a3af42e39bd61ee4a2b74db14f (diff)
downloadsamba-1575cae7e53a5738d7e2530e855aef68ca971706.tar.gz
samba-1575cae7e53a5738d7e2530e855aef68ca971706.tar.bz2
samba-1575cae7e53a5738d7e2530e855aef68ca971706.zip
Fix memory leak.
Diffstat (limited to 'source4')
-rw-r--r--source4/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 1ab842c8f8..d660141efc 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -2687,7 +2687,7 @@ _PUBLIC_ struct dcerpc_server_info *lp_dcerpc_server_info(TALLOC_CTX *mem_ctx, s
struct gensec_settings *lp_gensec_settings(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
{
- struct gensec_settings *settings = talloc(NULL, struct gensec_settings);
+ struct gensec_settings *settings = talloc(mem_ctx, struct gensec_settings);
if (settings == NULL)
return NULL;
SMB_ASSERT(lp_ctx != NULL);