From: Eric Wong Date: 2011-07-01T11:21:13+09:00 Subject: [ruby-core:37708] [Ruby 1.9 - Bug #4956][Open] [PATCH] string.c (tr_s_bang): fix leak with heap strings Issue #4956 has been reported by Eric Wong. ---------------------------------------- Bug #4956: [PATCH] string.c (tr_s_bang): fix leak with heap strings http://redmine.ruby-lang.org/issues/4956 Author: Eric Wong Status: Open Priority: Normal Assignee: Category: core Target version: 1.9.x ruby -v: ruby 1.9.3dev (2011-07-01 trunk 32347) [x86_64-linux] Trivially reproduced with: loop { "this string is too long to embed".tr_s!(" \t\r\n\f", " ") } This also affects Ruby 1.9.2-p180 -- http://redmine.ruby-lang.org