From 09d0e5590c28b40846fbd1cc433f8f139e6cd32a Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 9 Oct 2018 09:42:33 +0200 Subject: cli: fix memory leak activate_connection_editor_cb() must free @info and unref the device. --- clients/cli/connections.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- cgit v1.2.1