Actions
Bug #22383
openFix inverted `STR_SHARED` check in `rb_str_tmp_frozen_release`
Bug #22383:
Fix inverted `STR_SHARED` check in `rb_str_tmp_frozen_release`
Description
mistakenly rewrote
as
requiring orig to not be shared, the opposite of the original
condition. orig always shares the buffer with tmp here, so the buffer
was never given back and the string stayed shared until its next
modification copied it.
The next line of code then reads aux.shared from strings
that are not shared, where the union holds aux.capa.
Actions