mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-15 17:40:18 +01:00
settings: close module if loading of plugins fails
This commit is contained in:
parent
fba17e5c84
commit
3be5e2908c
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue