diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-29 08:03:55 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-29 08:03:55 +0000 |
commit | a763e3460f594f60a5d2e8eba5f7da981d717a55 (patch) | |
tree | e1ec0392ec5b87def164a31e08759976f326293b /version.h | |
parent | 2fc56c986a17222993880320902efea5ed397ff3 (diff) | |
download | ruby-a763e3460f594f60a5d2e8eba5f7da981d717a55.tar.gz |
clear dst Hash on Hash#replace. [Bug #15358]
* hash.c (linear_copy): solve two issues on `Hash#replace`.
(1) fix memory leak
(1-1) don't allocate memory if destination already
has a memory area.
(1-2) free destination memory if src is NULL.
(2) clear transient heap flag if src is NULL. [Bug #15358]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'version.h')
0 files changed, 0 insertions, 0 deletions