settings: close module if loading of plugins fails

(cherry picked from commit 3be5e2908c)
This commit is contained in:
Thomas Haller 2015-06-17 17:46:28 +02:00
parent 1657a91ee6
commit e1283824ef

View file

@ -744,6 +744,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;
}
@ -753,6 +754,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;
}