From 5e7e247f00aeb1b0b9885f73bbdc0616f8b41f19 Mon Sep 17 00:00:00 2001 From: Ryan McCabe Date: Fri, 26 Oct 2012 18:15:31 -0400 Subject: [PATCH] Revert "fence-virt: Fix possible descriptor leak" This reverts commit d093fecd8ecef0e94a9f6d1f3fa763525fd776a8. --- server/plugin.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/plugin.c b/server/plugin.c index ed48012..8782ea4 100644 --- a/server/plugin.c +++ b/server/plugin.c @@ -299,10 +299,8 @@ plugin_load(const char *libpath) } if (!backend_plugin_load(handle, libpath) || - !listener_plugin_load(handle, libpath)) { - dlclose(handle); + !listener_plugin_load(handle, libpath)) return 0; - } dbg_printf(3, "%s is not a valid plugin\n", libpath); dlclose(handle);