From f0653fd572bbc7f924767f76853432fc29861a1c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 25 Sep 2007 22:43:42 +0000 Subject: r25326: Free the context from the talloc_stackframe. Guenther (This used to be commit 0719835c4d979c91d11b139e5b424b5e0dc2a2c2) --- source3/lib/module.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/module.c b/source3/lib/module.c index beb9bc9b92..57b4c38edc 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", -- cgit