diff options
author | nagachika <nagachika@ruby-lang.org> | 2021-09-11 14:00:44 +0900 |
---|---|---|
committer | nagachika <nagachika@ruby-lang.org> | 2021-09-11 14:00:44 +0900 |
commit | 650af7d29d98de6a3c2631e31edc6fbe435ece89 (patch) | |
tree | c0380c4d89d151d87578450b4ae683006ffd04c7 /io.c | |
parent | 13f64b65e0476c2fe416a29274fcc91e3c0cf5d3 (diff) |
merge revision(s) 5d815542815fe8b939239750bba7f8f0b79c97d6: [Backport #18154]
[Bug #18154] Fix memory leak in String#initialize
String#initialize can leak memory when called on a string that is marked
with STR_NOFREE because it does not unset the STR_NOFREE flag.
---
string.c | 2 +-
test/ruby/test_string.rb | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
Diffstat (limited to 'io.c')
0 files changed, 0 insertions, 0 deletions