mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 09:32:34 +00:00
Merge pull request #2548 from signalwire/leak
[Core] switch_find_local_ip: Coverity 1024290 Resource leak.
This commit is contained in:
commit
863d44fc8b
@ -2015,7 +2015,7 @@ SWITCH_DECLARE(switch_status_t) switch_find_local_ip(char *buf, int len, int *ma
|
|||||||
}
|
}
|
||||||
|
|
||||||
doh:
|
doh:
|
||||||
if (tmp_socket > 0) {
|
if (tmp_socket >= 0) {
|
||||||
close(tmp_socket);
|
close(tmp_socket);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user