fence-virt: Fix possible descriptor leak
Add missing dlclose after loading plugins. Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
This commit is contained in:
parent
85ecac5cff
commit
d093fecd8e
@ -299,8 +299,10 @@ plugin_load(const char *libpath)
|
||||
}
|
||||
|
||||
if (!backend_plugin_load(handle, libpath) ||
|
||||
!listener_plugin_load(handle, libpath))
|
||||
!listener_plugin_load(handle, libpath)) {
|
||||
dlclose(handle);
|
||||
return 0;
|
||||
}
|
||||
|
||||
dbg_printf(3, "%s is not a valid plugin\n", libpath);
|
||||
dlclose(handle);
|
||||
|
Loading…
Reference in New Issue
Block a user