summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-07-18 05:02:31 +0930
committerRusty Russell <rusty@rustcorp.com.au>2012-07-18 05:02:31 +0930
commita620fc0372a8c493c8d4800acc42cc630acebcb4 (patch)
tree6b5e871db23a21ca456a66bbe901cd86db50267a /lib/util
parent2314c606297218b8e16bb42b181c1ea175cf710a (diff)
downloadsamba-a620fc0372a8c493c8d4800acc42cc630acebcb4.tar.gz
samba-a620fc0372a8c493c8d4800acc42cc630acebcb4.tar.bz2
samba-a620fc0372a8c493c8d4800acc42cc630acebcb4.zip
lib/util/modules.c: fix stackframe leak.
do_smb_load_module() doesn't free its stackframe on success. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/modules.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/modules.c b/lib/util/modules.c
index 93fd79be3d..23298da344 100644
--- a/lib/util/modules.c
+++ b/lib/util/modules.c
@@ -192,6 +192,7 @@ static NTSTATUS do_smb_load_module(const char *subsystem,
}
if (!init) {
+ TALLOC_FREE(ctx);
return NT_STATUS_UNSUCCESSFUL;
}
@@ -203,7 +204,7 @@ static NTSTATUS do_smb_load_module(const char *subsystem,
module_name, get_friendly_nt_error_msg(status)));
dlclose(handle);
}
-
+ TALLOC_FREE(ctx);
return status;
}