diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-11-13 23:41:19 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-11-14 09:53:46 -0800 |
commit | 8ca8859f11d3a842e8fc7a0c1d2bb21e709d5a3b (patch) | |
tree | faf1a2062bf080e196a648180a972f55ffd96204 /op.c | |
parent | ca9fab4684db1c2d435d11b9339f25cf4a8d3fba (diff) | |
download | perl-8ca8859f11d3a842e8fc7a0c1d2bb21e709d5a3b.tar.gz |
Stop my subs with syntax errors from leaking
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6970,6 +6970,8 @@ Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) if (PL_parser && PL_parser->error_count) { op_free(block); + SvREFCNT_dec(PL_compcv); + PL_compcv = 0; goto done; } |