Skip to content

Commit

Permalink
[Core] switch_find_local_ip: Coverity 1024290 Resource leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
andywolk committed Jul 29, 2024
1 parent 43f8ffb commit 11e3cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/switch_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11e3cff

Please sign in to comment.