summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-06-23 13:19:10 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-06-25 06:57:43 +0900
commit9cdf439db52b66447b4e37c61179d54fad6c8f33 (patch)
treec89e9163d96b5ce6478bf054c02f19c0b407fc9d /.github
parent95360a17f2260a46daeab2ed3456cd7c25c162ef (diff)
downloadmruby-9cdf439db52b66447b4e37c61179d54fad6c8f33.tar.gz
mruby-9cdf439db52b66447b4e37c61179d54fad6c8f33.zip
Free the original pointer if `realloc` failed.
The POSIX `realloc` keep the original pointer untouched, so it can easily leads to memory leakage. `mrb_realloc()` should handle those bookkeeping, while `mrb_realloc_simple()` keeps the original `realloc` behavior.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions