mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 04:18:07 +02:00
ifupdown: fix crash loading ifupdown settings with empty entries like bridge-ports and mappings
Fixes:d35d3c468a('settings: rework tracking settings connections and settings plugins') https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/235 (cherry picked from commite9ccc2da19)
This commit is contained in:
parent
6118f808d9
commit
eaf051270c
1 changed files with 2 additions and 0 deletions
|
|
@ -89,6 +89,8 @@ static GHashTable *load_eni_ifaces (NMSIfupdownPlugin *self);
|
|||
static void
|
||||
_storage_data_destroy (StorageData *sd)
|
||||
{
|
||||
if (!sd)
|
||||
return;
|
||||
nm_g_object_unref (sd->connection);
|
||||
nm_g_object_unref (sd->storage);
|
||||
g_slice_free (StorageData, sd);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue