[macruby-changes] [MacRuby/MacRuby] c2992d: fix memory leaks in JSON.parse

noreply at github.com noreply at github.com
Thu Jun 9 15:01:14 PDT 2011


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

Commit: c2992da152d08501ebe531c42e3dcdf7bc68fdf3
    https://github.com/MacRuby/MacRuby/commit/c2992da152d08501ebe531c42e3dcdf7bc68fdf3
Author: Watson <watson1978 at gmail.com>
Date:   2011-06-09 (Thu, 09 Jun 2011)

Changed paths:
  M ext/json/parser/extconf.rb
  M ext/json/parser/parser.c
  M ext/json/parser/parser.h
  M ext/json/parser/parser.rl

Log Message:
-----------
fix memory leaks in JSON.parse

Test Script:
{{{
require 'json'

ary = (0 .. 100).map{|x| x}
str = '[' + ary.join(',') + ']'

loop do
  JSON.parse(str)
end
}}}


Commit: 1fa3eba0956090f28939eb29f52e551a6b400f1f
    https://github.com/MacRuby/MacRuby/commit/1fa3eba0956090f28939eb29f52e551a6b400f1f
Author: Watson <watson1978 at gmail.com>
Date:   2011-06-09 (Thu, 09 Jun 2011)

Changed paths:
  M ext/json/generator/extconf.rb
  M ext/json/generator/generator.c
  M ext/json/generator/generator.h

Log Message:
-----------
fix memory leaks in JSON.generate

Test Script:
{{{
require 'json'

loop do
  JSON.generate("key1" => "foo", "key2" => "bar")
end
}}}


Compare: https://github.com/MacRuby/MacRuby/compare/d178850...1fa3eba


More information about the macruby-changes mailing list