diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/module.c | 7 |
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", |