Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Sep 1 17:04:27 UTC 2025 on atb-devel-224
static NTSTATUS load_module_absolute_path(const char *module_path,
bool is_probe)
{
+ void *handle = NULL;
init_module_fn init;
NTSTATUS status;
is_probe ? "Probing" : "Loading",
module_path);
- init = load_module(module_path, is_probe, NULL);
+ init = load_module(module_path, is_probe, &handle);
if (init == NULL) {
return NT_STATUS_UNSUCCESSFUL;
}
DBG_ERR("Module '%s' initialization failed: %s\n",
module_path,
get_friendly_nt_error_msg(status));
+ dlclose(handle);
return status;
}