From c809eec53fb1d2a36909e4934dff349f91e3359e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 18 Jul 2012 05:09:31 +0930 Subject: [PATCH] source3/utils/net_conf.c: fix stackframe leak net_conf_wrap_function() doesn't free its stackframe. Signed-off-by: Rusty Russell --- source3/utils/net_conf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index b257ce17869..60588c0eedc 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -1131,6 +1131,7 @@ static int net_conf_wrap_function(struct net_context *c, err = smbconf_init(mem_ctx, &conf_ctx, "registry:"); if (!SBC_ERROR_IS_OK(err)) { + talloc_free(mem_ctx); return -1; } @@ -1138,6 +1139,7 @@ static int net_conf_wrap_function(struct net_context *c, smbconf_shutdown(conf_ctx); + talloc_free(mem_ctx); return ret; } -- 2.11.4.GIT