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 | 205730046dded614e20895e5899ae9bc6fc41cb8 (patch) | |
tree | d4289360cc6bbab6089d8cf150381676c96eff03 | |
parent | 5be9e245e612b52d0ff7f4570b091732c6d30d6f (diff) |
cli: fix memory leak
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 11d88bbef..38842cea9 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); } |