aboutsummaryrefslogtreecommitdiffstats
path: root/version.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-10 15:20:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-10 15:20:35 +0000
commit482bf1959a257813728cc7b13a9ff698590fec44 (patch)
tree89e25c2fecb828b797ad7faa57bfd8a1f8c13616 /version.h
parent3875df97f1ff78c376543a2c3cb32ab6aada69bc (diff)
downloadruby-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