mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
Wifi (FreeBSD): fix possible mem leaks
This commit is contained in:
@@ -17,6 +17,7 @@ const char* ffDetectWifi(FFlist* result)
|
||||
|
||||
FF_AUTO_CLOSE_FD int sock = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
if(sock < 0) {
|
||||
if_freenameindex(infs);
|
||||
return "socket() failed";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user