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
commitae112d0070fdcd365b42f0c91bf3e46fb8bd573b (patch)
tree452bc5db9f031163e62a8e8162f12cd2b155f687
parent13aaad7c5bf6fd0a0cf105fb8b042dffdb11d9f3 (diff)
downloadNetworkManager-ae112d0070fdcd365b42f0c91bf3e46fb8bd573b.tar.gz
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)
-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 20692ed9e3..aafc751829 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: