diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-10 15:20:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-10 15:20:35 +0000 |
commit | 482bf1959a257813728cc7b13a9ff698590fec44 (patch) | |
tree | 89e25c2fecb828b797ad7faa57bfd8a1f8c13616 /version.h | |
parent | 3875df97f1ff78c376543a2c3cb32ab6aada69bc (diff) | |
download | ruby-482bf1959a257813728cc7b13a9ff698590fec44.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'version.h')
0 files changed, 0 insertions, 0 deletions