mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 03:28:03 +02:00
keyfile: don't free GError when it's NULL (after connection's successful update)
This commit is contained in:
parent
f97c0369c0
commit
639ae507e1
1 changed files with 2 additions and 1 deletions
|
|
@ -88,7 +88,8 @@ update (NMSettingsConnectionInterface *connection,
|
|||
success = parent_settings_connection_iface->update (connection, callback, user_data);
|
||||
} else {
|
||||
callback (connection, error, user_data);
|
||||
g_error_free (error);
|
||||
if (error)
|
||||
g_error_free (error);
|
||||
g_free (filename);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue