summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-11-03 06:50:04 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-11-04 22:45:31 -0800
commitc25611d58839424e4723cc29fa005047f61b7d2b (patch)
tree36fac7019282f8cd5d41f4b98978d47c685a48ef /perly.y
parent2e880be705313389843cfb10a460d634e9d54ce7 (diff)
downloadperl-c25611d58839424e4723cc29fa005047f61b7d2b.tar.gz
Stop statement labels from leaking
They have leaked since v5.15.9-35-g5db1eb8 (which probably broke mad dumping of labels; to be addressed in the next commit).
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/perly.y b/perly.y
index 58c4d81380..704728ee21 100644
--- a/perly.y
+++ b/perly.y
@@ -280,12 +280,14 @@ labfullstmt: LABEL barestmt
savepv(SvPVX(((SVOP*)$1)->op_sv)), $2);
TOKEN_GETMAD($1,
$2 ? cLISTOPx($$)->op_first : $$, 'L');
+ op_free((OP*)$1);
}
| LABEL labfullstmt
{
$$ = newSTATEOP(SvUTF8(((SVOP*)$1)->op_sv),
savepv(SvPVX(((SVOP*)$1)->op_sv)), $2);
TOKEN_GETMAD($1, cLISTOPx($$)->op_first, 'L');
+ op_free((OP*)$1);
}
;