From: Günther Deschner Date: Tue, 25 Sep 2007 22:43:42 +0000 (+0000) Subject: r25326: Free the context from the talloc_stackframe. X-Git-Tag: samba-4.0.0alpha6~801^2~4722 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=f0653fd572bbc7f924767f76853432fc29861a1c;p=samba.git r25326: Free the context from the talloc_stackframe. Guenther (This used to be commit 0719835c4d979c91d11b139e5b424b5e0dc2a2c2) --- diff --git a/source3/lib/module.c b/source3/lib/module.c index beb9bc9b925..57b4c38edc9 100644 --- a/source3/lib/module.c +++ b/source3/lib/module.c @@ -108,8 +108,11 @@ NTSTATUS smb_probe_module(const char *subsystem, const char *module) DEBUG(5, ("Probing module '%s'\n", module)); - if (module[0] == '/') - return do_smb_load_module(module, True); + if (module[0] == '/') { + status = do_smb_load_module(module, True); + TALLOC_FREE(ctx); + return status; + } full_path = talloc_asprintf(ctx, "%s/%s.%s",