summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2024-11-21 10:55:41 +0900
committerYusuke Endoh <mame@ruby-lang.org>2024-11-21 00:20:11 -0600
commitd43f796292dca6755c4cdf0823d1b9dff80ebeb5 (patch)
tree59a9c4bae53a91a67a15590e69fe5b7df8b01cc1 /include/ruby
parentf20b6e5dbcb8af41c64dc468976e518806b0712f (diff)
Fix the usage of realloc
http://ci.rvm.jp/results/trunk-repeat50@ruby-sp2-noble-docker/5420911 ``` /tmp/ruby/src/trunk-repeat50/ext/socket/ipsocket.c: In function ‘reallocate_connection_attempt_fds’: /tmp/ruby/src/trunk-repeat50/ext/socket/ipsocket.c:292:62: warning: pointer ‘fds’ may be used after ‘realloc’ [-Wuse-after-free] 292 | for (int i = current_capacity; i < new_capacity; i++) fds[i] = -1; | ^ /tmp/ruby/src/trunk-repeat50/ext/socket/ipsocket.c:288:9: note: call to ‘realloc’ here 288 | if (realloc(fds, new_capacity * sizeof(int)) == NULL) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions