Skip to content

Commit 9c455c3

Browse files
committed
Wifi (FreeBSD): fix possible mem leaks
1 parent d4ea9df commit 9c455c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/detection/wifi/wifi_bsd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const char* ffDetectWifi(FFlist* result)
1717

1818
FF_AUTO_CLOSE_FD int sock = socket(AF_INET, SOCK_DGRAM, 0);
1919
if(sock < 0) {
20+
if_freenameindex(infs);
2021
return "socket() failed";
2122
}
2223

0 commit comments

Comments
 (0)