diff options
author | Marcus Holland-Moritz <mhx-perl@gmx.net> | 2008-10-18 18:04:40 +0000 |
---|---|---|
committer | Marcus Holland-Moritz <mhx-perl@gmx.net> | 2008-10-18 18:04:40 +0000 |
commit | a954f6ee3112c0edfbc59783d1b424d995122784 (patch) | |
tree | d806f09e0901c8f36ef0075dc77404b5c3afd667 /pp_hot.c | |
parent | 711690a16d2a16be7070e06779c46a6d8f482689 (diff) | |
download | perl-a954f6ee3112c0edfbc59783d1b424d995122784.tar.gz |
Fix memory leak in qr// operator. This was most probably
introduced with #30849.
p4raw-id: //depot/perl@34506
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1212,6 +1212,7 @@ PP(pp_qr) if (pkg) { HV* const stash = gv_stashpv(SvPV_nolen(pkg), GV_ADD); + SvREFCNT_dec(pkg); (void)sv_bless(rv, stash); } |