[macruby-changes] [5110] MacRuby/trunk/re.c

source_changes at macosforge.org source_changes at macosforge.org
Mon Jan 3 19:22:14 PST 2011


Revision: 5110
          http://trac.macosforge.org/projects/ruby/changeset/5110
Author:   lsansonetti at apple.com
Date:     2011-01-03 19:22:09 -0800 (Mon, 03 Jan 2011)
Log Message:
-----------
fix a memory leak and potential bug

Modified Paths:
--------------
    MacRuby/trunk/re.c

Modified: MacRuby/trunk/re.c
===================================================================
--- MacRuby/trunk/re.c	2011-01-03 23:56:10 UTC (rev 5109)
+++ MacRuby/trunk/re.c	2011-01-04 03:22:09 UTC (rev 5110)
@@ -730,7 +730,7 @@
     uregex_setText(match_pattern, chars, chars_len, &status);
 
     if (status != U_ZERO_ERROR) {
-	uregex_close(matcher->pattern);
+	uregex_close(match_pattern);
 	if (need_free) {
 	    free(chars);
 	}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110103/c15344f0/attachment.html>


More information about the macruby-changes mailing list