1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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>
This commit is contained in:
Rusty Russell 2012-07-18 05:02:31 +09:30
parent 2314c60629
commit a620fc0372

View File

@ -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;
}