From 60366346fb37dce59007fafe4b359df25e27d1e8 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 22 Dec 2021 21:32:18 -0600 Subject: [PATCH] handshake: Do not leak vendor_ies Direct leak of 7 byte(s) in 1 object(s) allocated from: #0 0x7fd748ad00f8 in __interceptor_malloc (/usr/lib/gcc/x86_64-pc-linux-gnu/9.4.0/libasan.so.5+0x10c0f8) #1 0x688c21 in l_malloc ell/util.c:62 #2 0x4beec7 in handshake_state_set_vendor_ies src/handshake.c:324 #3 0x464e4e in station_handshake_setup src/station.c:1203 #4 0x472a2f in __station_connect_network src/station.c:2975 #5 0x473a30 in station_connect_network src/station.c:3078 #6 0x4ed728 in network_connect_8021x src/network.c:1497 Fixes: f24cfa481b0c ("handshake: Add setter for vendor IEs") --- src/handshake.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/handshake.c b/src/handshake.c index 8b08379d..8169ec69 100644 --- a/src/handshake.c +++ b/src/handshake.c @@ -115,6 +115,7 @@ void handshake_state_free(struct handshake_state *s) l_free(s->fte); l_free(s->fils_ip_req_ie); l_free(s->fils_ip_resp_ie); + l_free(s->vendor_ies); if (s->erp_cache) erp_cache_put(s->erp_cache);