summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-10-12 17:05:52 +0200
committerThomas Haller <thaller@redhat.com>2020-10-12 17:11:58 +0200
commit3cf8620294e83960c97961d096be19ece5c57ea5 (patch)
tree9dd3ef5c677cfb8bb74e4dc6378b1c1959fb3c0e
parent0fe92f40fc197d217f0df63ebc617b656dd29f07 (diff)
downloadNetworkManager-3cf8620294e83960c97961d096be19ece5c57ea5.tar.gz
device/wifi: fix leak of NMSupplicantPeerInfo.peer_path in NMSupplicantInterface
Fixes: b83f07916a54 ('supplicant: large rework of wpa_supplicant handling')
-rw-r--r--src/supplicant/nm-supplicant-interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/supplicant/nm-supplicant-interface.c b/src/supplicant/nm-supplicant-interface.c
index 1f6252f63c..e409f4900e 100644
--- a/src/supplicant/nm-supplicant-interface.c
+++ b/src/supplicant/nm-supplicant-interface.c
@@ -835,6 +835,8 @@ _peer_info_destroy(NMSupplicantPeerInfo *peer_info)
g_free(peer_info->serial);
g_bytes_unref(peer_info->ies);
+ nm_ref_string_unref(peer_info->peer_path);
+
nm_g_slice_free(peer_info);
}