[ruby-cvs:57612] nobu:r50464 (trunk): ruby.h: fix possible memory leak

nobu at ruby-lang.org nobu at ruby-lang.org
Mon May 11 00:20:37 JST 2015


nobu	2015-05-11 00:20:35 +0900 (Mon, 11 May 2015)

  New Revision: 50464

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

  Log:
    ruby.h: fix possible memory leak
    
    * include/ruby/ruby.h (Data_Make_Struct, TypedData_Make_Struct):
      allocate wrapper data object before allocating DATA_PTR to get
      rid of possible memory leak when the former failed.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
    trunk/include/ruby/ruby.h


More information about the ruby-cvs mailing list