diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-09 04:35:12 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-09 04:35:12 +0000 |
| commit | 4adfbab35c128a0c3b9f1fdb7c0d89ccdaf55351 (patch) | |
| tree | 316f9e788c129811cef5262e1701dc6c9b448cfb /include/ruby | |
| parent | 098b0ba572d624acdc2af1925db7feda4b72881e (diff) | |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions
