diff options
author | Nicholas Clark <nick@ccl4.org> | 2004-02-07 21:46:59 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2004-02-07 21:46:59 +0000 |
commit | 754604c44e26572c47a2c15665bf1009e9e5b219 (patch) | |
tree | cb12520da5374cfae9410024dfd0091eba19444d /hv.c | |
parent | e0e97dbabd467d4797d6138693db9ab58187faf3 (diff) | |
download | perl-754604c44e26572c47a2c15665bf1009e9e5b219.tar.gz |
deleting keys in restricted hashes was leaking the entry. Yow!
p4raw-id: //depot/perl@22281
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1005,6 +1005,7 @@ S_hv_delete_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen, * an error. */ if (SvREADONLY(hv)) { + SvREFCNT_dec(HeVAL(entry)); HeVAL(entry) = &PL_sv_placeholder; /* We'll be saving this slot, so the number of allocated keys * doesn't go down, but the number placeholders goes up */ |