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:
parent
2314c60629
commit
a620fc0372
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user