summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-09-25 22:43:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:00 -0500
commitf0653fd572bbc7f924767f76853432fc29861a1c (patch)
treecb66e30bb708c0a822b716864d404b91ac3e40ee
parent32925f27ca6f2357e067f1ec18a548c0f759ead9 (diff)
downloadsamba-f0653fd572bbc7f924767f76853432fc29861a1c.tar.gz
samba-f0653fd572bbc7f924767f76853432fc29861a1c.tar.bz2
samba-f0653fd572bbc7f924767f76853432fc29861a1c.zip
r25326: Free the context from the talloc_stackframe.
Guenther (This used to be commit 0719835c4d979c91d11b139e5b424b5e0dc2a2c2)
-rw-r--r--source3/lib/module.c7
1 files changed, 5 insertions, 2 deletions
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",