summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-08-06 21:59:17 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-08-08 12:24:50 -0700
commit2c658e55bf9e8acf7cc0207ea3db8f7064cb3ad7 (patch)
tree7e24c397b7a2afdff20bc984cf995353fc1d9d7f /perly.y
parenta33a81d07c9c0cb0ab9ba85fab5a519c4b3b710b (diff)
downloadperl-2c658e55bf9e8acf7cc0207ea3db8f7064cb3ad7.tar.gz
Don’t create formats after compilation errors
Otherwise you can end up with a format that has nonsensical op tree, but it gets attached and you can call it anyway.
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y1
1 files changed, 0 insertions, 1 deletions
diff --git a/perly.y b/perly.y
index b940bc63f8..b9bc0eb859 100644
--- a/perly.y
+++ b/perly.y
@@ -288,7 +288,6 @@ barestmt: PLUGSTMT
| FORMAT startformsub formname formblock
{
CV *fmtcv = PL_compcv;
- SvREFCNT_inc_simple_void(PL_compcv);
#ifdef MAD
$$ = newFORM($2, $3, $4);
prepend_madprops($1->tk_mad, $$, 'F');