[ruby-cvs:55004] nobu:r47855 (trunk): array.c: fix potential memory leak

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Oct 9 13:35:12 JST 2014


nobu	2014-10-09 13:35:12 +0900 (Thu, 09 Oct 2014)

  New Revision: 47855

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

  Log:
    array.c: fix potential memory leak
    
    * array.c (ary_new): allocate buffer in heap after new object get
      allocated successfully, to get rid of potential memory leak at
      object allocation failure.

  Modified files:
    trunk/array.c


More information about the ruby-cvs mailing list