mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 13:40:10 +01:00
cli: fix memory leak
activate_connection_editor_cb() must free @info and unref the device.
This commit is contained in:
parent
d091cbdc2f
commit
09d0e5590c
1 changed files with 4 additions and 0 deletions
|
|
@ -6687,6 +6687,10 @@ activate_connection_editor_cb (GObject *client,
|
|||
} else
|
||||
g_object_unref (active);
|
||||
}
|
||||
|
||||
nm_g_object_unref (info->device);
|
||||
g_free (info);
|
||||
|
||||
set_info_and_signal_editor_thread (error, monitor_ac_info);
|
||||
g_clear_error (&error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue