[macruby-changes] [5071] MacRuby/trunk/string.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Dec 22 11:10:51 PST 2010
Revision: 5071
http://trac.macosforge.org/projects/ruby/changeset/5071
Author: watson1978 at gmail.com
Date: 2010-12-22 11:10:48 -0800 (Wed, 22 Dec 2010)
Log Message:
-----------
Fixed a memory leak.
Modified Paths:
--------------
MacRuby/trunk/string.c
Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c 2010-12-22 13:26:48 UTC (rev 5070)
+++ MacRuby/trunk/string.c 2010-12-22 19:10:48 UTC (rev 5071)
@@ -4800,6 +4800,7 @@
if (need_free) {
free(transform_chars);
}
+ free(new_chars);
rb_raise(rb_eArgError, "cannot create transliterator");
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101222/b7ce621e/attachment.html>
More information about the macruby-changes
mailing list