[ruby-cvs:57798] nobu:r50650 (trunk): bigdecimal.c: wrapper object before alloc

nobu at ruby-lang.org nobu at ruby-lang.org
Wed May 27 17:02:29 JST 2015


nobu	2015-05-27 17:02:28 +0900 (Wed, 27 May 2015)

  New Revision: 50650

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

  Log:
    bigdecimal.c: wrapper object before alloc
    
    * ext/bigdecimal/bigdecimal.c (VpNewRbClass): make wrapper object
      before result structs allocation and manage refcount for each
      elements to get rid of potential memory leak.
    
    * ext/bigdecimal/bigdecimal.c (BigDecimal_global_new): ditto.

  Modified files:
    trunk/ext/bigdecimal/bigdecimal.c
    trunk/test/bigdecimal/test_bigdecimal.rb


More information about the ruby-cvs mailing list