[macruby-changes] [MacRuby/MacRuby] 76e943: use the xfree() when deallocate the memory using x...

noreply at github.com noreply at github.com
Thu May 26 19:40:52 PDT 2011


Branch: refs/heads/master
Home:   https://github.com/MacRuby/MacRuby

Commit: 76e9435ed705ae26d5d396f8efbe482ecb151579
    https://github.com/MacRuby/MacRuby/commit/76e9435ed705ae26d5d396f8efbe482ecb151579
Author: Watson <watson1978 at gmail.com>
Date:   2011-05-26 (Thu, 26 May 2011)

Changed paths:
  M file.c

Log Message:
-----------
use the xfree() when deallocate the memory using xmalloc().

Test Script:
{{{
File.open("/tmp/foo", "w") {|f|
  f.write "foo\nbar"
}

stat1 = File::Stat.new("/usr/local/bin/macruby")
stat2 = File::Stat.new("/tmp/foo")
stat1.send(:initialize_copy, stat2)
}}}




More information about the macruby-changes mailing list