ext/utf8/string_utf8.c in utf8-0.1.4 vs ext/utf8/string_utf8.c in utf8-0.1.5
- old
+ new
@@ -360,9 +360,11 @@
}
rb_out = rb_str_new((const char*)out, len);
AS_UTF8(rb_out);
+ xfree(out);
+
return rb_out;
}
void init_String_UTF8() {
VALUE rb_cString_UTF8 = rb_define_class_under(rb_cString, "UTF8", rb_cString);
\ No newline at end of file