1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

source3/utils/net_conf.c: fix stackframe leak

net_conf_wrap_function() doesn't free its stackframe.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2012-07-18 05:09:31 +09:30
parent aa2e02e684
commit c809eec53f

View File

@ -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;
}