diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-27 08:02:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-27 08:02:28 +0000 |
commit | bdf07741f3c9e2aa522026ca116d55f257013c41 (patch) | |
tree | 070f03193ada1f335cd8bc5870a929aa9f5242a3 /test/bigdecimal/test_bigmath.rb | |
parent | 2df5bb9ac14426a707a05d61db1b5ce8dd0fd52d (diff) |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/bigdecimal/test_bigmath.rb')
0 files changed, 0 insertions, 0 deletions