diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-11-03 00:14:26 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-11-03 00:14:26 +0100 |
commit | 1575cae7e53a5738d7e2530e855aef68ca971706 (patch) | |
tree | f6074ff4ae1fee19849bf240e6065c045effaa26 | |
parent | b45caa44e1a563a3af42e39bd61ee4a2b74db14f (diff) | |
download | samba-1575cae7e53a5738d7e2530e855aef68ca971706.tar.gz samba-1575cae7e53a5738d7e2530e855aef68ca971706.tar.bz2 samba-1575cae7e53a5738d7e2530e855aef68ca971706.zip |
Fix memory leak.
-rw-r--r-- | source4/param/loadparm.c | 2 |
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); |