diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-01-12 15:32:24 -0500 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2024-01-12 16:13:42 -0500 |
| commit | 206388b19eb3e1d98ee77821a96705c97c86eb06 (patch) | |
| tree | 63a9a9902e7541eb5ceec07daea2051ecb8763ff /include | |
| parent | 2c27a3a0dd6a922c215758b2bf0635a7986f0eab (diff) | |
Fix ruby_free_proctitle
It is undefined behaviour to free environ as it is managed by the system.
This caused RUBY_FREE_AT_EXIT to double free on systems like Linux. This
commit changes it to only free orig_environ, which is enough to make
both Valgrind and macOS leaks tools to not detect memory leaks.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
