diff options
author | Alex Vandiver <alexmv@mit.edu> | 2009-05-29 20:17:36 -0400 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-05-30 15:57:38 +0200 |
commit | cda5537682a2f5132de1e0387c105e67a72efce4 (patch) | |
tree | 2f8efac5300c777f4d3fc36ea675288c8ea3e7d5 /hv.c | |
parent | f6c108d16c4c959f6b02d66f43f3ee84cbcc24b8 (diff) | |
download | perl-cda5537682a2f5132de1e0387c105e67a72efce4.tar.gz |
Fix [RT#63110] -- two small memory leaks were introduced in 5b9c067
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1444,7 +1444,7 @@ Perl_hv_copy_hints_hv(pTHX_ HV *const ohv) while ((entry = hv_iternext_flags(ohv, 0))) { SV *const sv = newSVsv(HeVAL(entry)); sv_magic(sv, NULL, PERL_MAGIC_hintselem, - (char *)newSVhek (HeKEY_hek(entry)), HEf_SVKEY); + (char *)sv_2mortal(newSVhek (HeKEY_hek(entry))), HEf_SVKEY); (void)hv_store_flags(hv, HeKEY(entry), HeKLEN(entry), sv, HeHASH(entry), HeKFLAGS(entry)); } |