[macruby-changes] [5073] MacRuby/trunk/parse.y

source_changes at macosforge.org source_changes at macosforge.org
Wed Dec 22 16:52:15 PST 2010


Revision: 5073
          http://trac.macosforge.org/projects/ruby/changeset/5073
Author:   lsansonetti at apple.com
Date:     2010-12-22 16:52:11 -0800 (Wed, 22 Dec 2010)
Log Message:
-----------
fix a malloc warning, because in the evil parse.y file, free() is a macro to xfree(), and we really want to use the original free() here

Modified Paths:
--------------
    MacRuby/trunk/parse.y

Modified: MacRuby/trunk/parse.y
===================================================================
--- MacRuby/trunk/parse.y	2010-12-22 22:51:32 UTC (rev 5072)
+++ MacRuby/trunk/parse.y	2010-12-23 00:52:11 UTC (rev 5073)
@@ -9876,7 +9876,7 @@
     if (need_free) {
 	UChar *tmp = (UChar *)xmalloc(sizeof(UChar) * chars_len);
 	memcpy(tmp, chars, sizeof(UChar) * chars_len);
-	free(chars);
+	orig_free(chars);
 	chars = tmp;
     }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101222/2df29bb8/attachment-0001.html>


More information about the macruby-changes mailing list