mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 07:00:13 +01:00
settings: close module if loading of plugins fails
(cherry picked from commit 3be5e2908c)
This commit is contained in:
parent
1657a91ee6
commit
e1283824ef
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue