From: Yusuke ENDOH Date: 2010-07-14T12:44:10+09:00 Subject: [ruby-core:31274] Re: [Bug #3466][Open] leak when using Rails and Ruby 1.9.2 Good reproduction case! I think this patch would work: diff --git a/proc.c b/proc.c index 01d06bf..7df2ec8 100644 --- a/proc.c +++ b/proc.c @@ -871,6 +871,7 @@ bm_free(void *ptr) xfree(def); else if (def->alias_count > 0) def->alias_count--; + xfree(ptr); } static size_t -- Yusuke Endoh