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 | 23331a9697be86584477cd294b53241ef0be9511 (patch) | |
tree | 89e25c2fecb828b797ad7faa57bfd8a1f8c13616 /ChangeLog | |
parent | 3164eb68f4f40236357afc8b1733d94bc8eb49f1 (diff) | |
download | ruby-23331a9697be86584477cd294b53241ef0be9511.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 'ChangeLog')
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Mon May 11 00:20:31 2015 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * 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. + Sun May 10 21:32:45 2015 Nobuyoshi Nakada <nobu@ruby-lang.org> * gc.c (gc_mark_children): call dmark function for non-NULL |