Project

General

Profile

« Previous | Next » 

Revision a763e346

Added by ko1 (Koichi Sasada) over 5 years ago

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