Merge pull request #2548 from signalwire/leak

[Core] switch_find_local_ip: Coverity 1024290 Resource leak.
This commit is contained in:
Andrey Volk 2024-07-30 12:30:10 +03:00 committed by GitHub
commit 863d44fc8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2015,7 +2015,7 @@ SWITCH_DECLARE(switch_status_t) switch_find_local_ip(char *buf, int len, int *ma
}
doh:
if (tmp_socket > 0) {
if (tmp_socket >= 0) {
close(tmp_socket);
}
#endif