diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2017-10-13 18:28:06 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2017-10-16 17:43:37 +0200 |
commit | 90aa8a8b7bf8d23cc9f45e886f7377663f47c6ff (patch) | |
tree | 6a49b2b9bf96542eda78fcfa67f23d141ad7f939 | |
parent | c898594c717e0423e7b769364feb5fc231f9682d (diff) | |
download | NetworkManager-90aa8a8b7bf8d23cc9f45e886f7377663f47c6ff.tar.gz |
tui: fix memory leakbg/tui-activation-rh1500651
-rw-r--r-- | clients/tui/nmt-connect-connection-list.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clients/tui/nmt-connect-connection-list.c b/clients/tui/nmt-connect-connection-list.c index 862861292d..afcbd35ebd 100644 --- a/clients/tui/nmt-connect-connection-list.c +++ b/clients/tui/nmt-connect-connection-list.c @@ -88,6 +88,7 @@ nmt_connect_connection_free (NmtConnectConnection *nmtconn) g_clear_object (&nmtconn->ap); g_clear_object (&nmtconn->active); g_free (nmtconn->ssid); + g_slice_free (NmtConnectConnection, nmtconn); } static void @@ -97,6 +98,7 @@ nmt_connect_device_free (NmtConnectDevice *nmtdev) g_clear_object (&nmtdev->device); g_slist_free_full (nmtdev->conns, (GDestroyNotify) nmt_connect_connection_free); + g_slice_free (NmtConnectDevice, nmtdev); } static const char *device_sort_order[] = { |