diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2004-06-28 22:50:01 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2004-06-28 22:50:01 +0000 |
commit | 0a1bd7acb04f7cfb7bc0973e9fa8f84b971137e7 (patch) | |
tree | 107322430285cb201fa006485d10809cfffd860e /sv.c | |
parent | 356373a2d8b3989a5bd4c75cba13144296e37c1d (diff) | |
download | perl-0a1bd7acb04f7cfb7bc0973e9fa8f84b971137e7.tar.gz |
[perl #30509] use encoding and "eq" cause memory leak
Perl_sv_eq() was creating a temp and not always freeing it
p4raw-id: //depot/perl@23006
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6639,8 +6639,10 @@ Perl_sv_eq(pTHX_ register SV *sv1, register SV *sv2) pv1 = SvPV(svrecode, cur1); } /* Now both are in UTF-8. */ - if (cur1 != cur2) + if (cur1 != cur2) { + SvREFCNT_dec(svrecode); return FALSE; + } } else { bool is_utf8 = TRUE; |