mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
## Summary - Fixed a double-free bug in the `createArgv` function in `node_process.zig` ## Details The `createArgv` function had two `defer allocator.free(args)` statements: - One on line 164 - Another on line 192 (now removed) This would cause the same memory to be freed twice when the function returned, leading to undefined behavior. Fixes #22975 ## Test plan The existing process.argv tests should continue to pass with this fix. 🤖 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>