summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-09-13 16:20:17 +0200
committerThomas Haller <thaller@redhat.com>2018-09-13 16:30:33 +0200
commit89491ed323cc89940548c244afcd57c7bc92131b (patch)
tree452bc5db9f031163e62a8e8162f12cd2b155f687
parent091ca562f2c3370defcd574ed380e693eecd7993 (diff)
wifi: fix leaking fake AP in NMDeviceWifi's act_stage1_prepare()nm-1-8
-rw-r--r--src/devices/wifi/nm-device-wifi.c1
1 files changed, 1 insertions, 0 deletions
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: