[ruby-cvs:57808] nobu:r50660 (trunk): parser.rl: allocate structs with wrapper

nobu at ruby-lang.org nobu at ruby-lang.org
Thu May 28 16:17:44 JST 2015


nobu	2015-05-28 16:17:42 +0900 (Thu, 28 May 2015)

  New Revision: 50660

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50660

  Log:
    parser.rl: allocate structs with wrapper
    
    * ext/json/parser/parser.rl (cJSON_parser_s_allocate): allocate
      structs with making new wrapper objects and get rid of potential
      memory leak.

  Modified files:
    trunk/ext/json/parser/parser.c
    trunk/ext/json/parser/parser.h
    trunk/ext/json/parser/parser.rl
    trunk/test/json/test_json.rb


More information about the ruby-cvs mailing list