mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
d25ae92c06
Fixed critical resource leaks by pre-allocating mruby objects before system calls. Since mrb_str_resize to smaller size and mrb_ary_push within pre-allocated size cannot fail, moving allocations before socket creation eliminates all leak potential with minimal code changes. Co-authored-by: Atlassian Rovo Dev