settings: close module if loading of plugins fails

This commit is contained in:
Thomas Haller 2015-06-17 17:46:28 +02:00
parent fba17e5c84
commit 3be5e2908c

View file

@ -833,6 +833,7 @@ load_plugins (NMSettings *self, const char **plugins, GError **error)
"Could not find plugin '%s' factory function.",
pname);
success = FALSE;
g_module_close (plugin);
break;
}
@ -842,6 +843,7 @@ load_plugins (NMSettings *self, const char **plugins, GError **error)
"Plugin '%s' returned invalid system config object.",
pname);
success = FALSE;
g_module_close (plugin);
break;
}