mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-26 01:02:35 +01:00
scan: free wfd member
Found using lsan: ==29896==ERROR: LeakSanitizer: detected memory leaks Direct leak of 9 byte(s) in 1 object(s) allocated from: #0 0x7fcd41e0c710 in __interceptor_malloc /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/gcc-8.2.0/libsanitizer/asan/asan_malloc_linux.cc:86 #1 0x606abd in l_malloc ell/util.c:62 #2 0x460230 in ie_tlv_vendor_ie_concat src/ie.c:140 #3 0x4605d1 in ie_tlv_extract_wfd_payload src/ie.c:216 #4 0x4a8773 in scan_parse_bss_information_elements src/scan.c:1105 #5 0x4a94a8 in scan_parse_attr_bss src/scan.c:1181 #6 0x4a99f8 in scan_parse_result src/scan.c:1238 #7 0x4abe4e in get_scan_callback src/scan.c:1451 #8 0x6442d9 in process_unicast ell/genl.c:979 #9 0x6453ff in received_data ell/genl.c:1087 #10 0x62e1a4 in io_callback ell/io.c:126 #11 0x628fca in l_main_iterate ell/main.c:473 #12 0x6294e8 in l_main_run ell/main.c:520 #13 0x629d8b in l_main_run_with_signal ell/main.c:642 #14 0x40681b in main src/main.c:505 #15 0x7fcd40a55bdd in __libc_start_main (/lib64/libc.so.6+0x21bdd)
This commit is contained in:
parent
9047157b5e
commit
b0fe62af5a
@ -1368,6 +1368,7 @@ void scan_bss_free(struct scan_bss *bss)
|
||||
l_free(bss->wsc);
|
||||
l_free(bss->osen);
|
||||
l_free(bss->rc_ie);
|
||||
l_free(bss->wfd);
|
||||
|
||||
switch (bss->source_frame) {
|
||||
case SCAN_BSS_PROBE_RESP:
|
||||
|
Loading…
Reference in New Issue
Block a user