From 89491ed323cc89940548c244afcd57c7bc92131b Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 13 Sep 2018 16:20:17 +0200 Subject: wifi: fix leaking fake AP in NMDeviceWifi's act_stage1_prepare() Fixes: 96f40dcdcd8b2df204d64026f0315ff6370048fa (cherry picked from commit ef61d7909f594c4f3ec145d141387956a6d9c73e) (cherry picked from commit d08530ac4b3007f0b681388a8e7f3fc3d773ac09) (cherry picked from commit 6c4c12c796aa14dfad074933deb1e969179f2477) (cherry picked from commit 4a345b2e783bd4b88cf364e3178c105006b25c47) --- src/devices/wifi/nm-device-wifi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c index 20692ed9e..aafc75182 100644 --- a/src/devices/wifi/nm-device-wifi.c +++ b/src/devices/wifi/nm-device-wifi.c @@ -2494,6 +2494,7 @@ act_stage1_prepare (NMDevice *device, NMDeviceStateReason *out_failure_reason) set_current_ap (self, ap, FALSE); nm_active_connection_set_specific_object (NM_ACTIVE_CONNECTION (req), nm_exported_object_get_path (NM_EXPORTED_OBJECT (ap))); + g_object_unref (ap); return NM_ACT_STAGE_RETURN_SUCCESS; done: -- cgit v1.2.3