mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 07:00:21 +01:00
Avoid memory leak on error
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3166 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
090dd0eb46
commit
cfaa9b73a1
1 changed files with 3 additions and 2 deletions
|
|
@ -490,9 +490,10 @@ connection_get_settings_cb (DBusGProxy *proxy,
|
|||
nm_warning ("%s (#%d): implement merge settings", __func__, __LINE__);
|
||||
}
|
||||
|
||||
g_hash_table_destroy (settings);
|
||||
|
||||
out:
|
||||
if (settings)
|
||||
g_hash_table_destroy (settings);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue