diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-10-09 09:42:33 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-10-09 09:58:27 +0200 |
commit | 09d0e5590c28b40846fbd1cc433f8f139e6cd32a (patch) | |
tree | d4289360cc6bbab6089d8cf150381676c96eff03 | |
parent | d091cbdc2fb2c953da226b92c461ae3ede2cece0 (diff) | |
download | NetworkManager-bg/issue51.tar.gz |
cli: fix memory leakbg/issue51
activate_connection_editor_cb() must free @info and unref the device.
-rw-r--r-- | clients/cli/connections.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 11d88bbef6..38842cea9e 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -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); } |