Skip to content

Commit

Permalink
Merge pull request #2548 from signalwire/leak
Browse files Browse the repository at this point in the history
[Core] switch_find_local_ip: Coverity 1024290 Resource leak.
  • Loading branch information
andywolk authored Jul 30, 2024
2 parents 43f8ffb + 11e3cff commit 863d44f
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 863d44f

Please sign in to comment.