r25326: Free the context from the talloc_stackframe.
authorGünther Deschner <gd@samba.org>
Tue, 25 Sep 2007 22:43:42 +0000 (22:43 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:31:00 +0000 (12:31 -0500)
Guenther
(This used to be commit 0719835c4d979c91d11b139e5b424b5e0dc2a2c2)

source3/lib/module.c

index beb9bc9b925a84a049b6530da112ee576fad1dc4..57b4c38edc9918d846f709021baf30b21316a084 100644 (file)
@@ -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",