forked from altcloud/fence-virt
Revert "fence-virt: Fix possible descriptor leak"
This reverts commit d093fecd8ecef0e94a9f6d1f3fa763525fd776a8.
This commit is contained in:
parent
0de5dd3ac9
commit
5e7e247f00
@ -299,10 +299,8 @@ plugin_load(const char *libpath)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!backend_plugin_load(handle, libpath) ||
|
if (!backend_plugin_load(handle, libpath) ||
|
||||||
!listener_plugin_load(handle, libpath)) {
|
!listener_plugin_load(handle, libpath))
|
||||||
dlclose(handle);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
dbg_printf(3, "%s is not a valid plugin\n", libpath);
|
dbg_printf(3, "%s is not a valid plugin\n", libpath);
|
||||||
dlclose(handle);
|
dlclose(handle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user