[Core] switch_find_local_ip: Coverity 1024290 Resource leak.

This commit is contained in:
Andrey Volk committed 2024-07-30 02:48:59 +03:00
1 parent 43f8ffb4f3
commit 11e3cff7cb
1 file changed
+1 -1
+1 -1
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