diff options
author | David Mitchell <davem@iabyn.com> | 2016-08-27 14:28:24 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-09-05 12:00:05 +0100 |
commit | 68d1ee858a9172f8fd376b2e4aca1cf5b1ecfaeb (patch) | |
tree | 41a56679c674f565c687819d23fe0bf5915a171e /op.c | |
parent | 03a1fa1ec8c5ab3929f9d04fe91f45260062eb0e (diff) | |
download | perl-68d1ee858a9172f8fd376b2e4aca1cf5b1ecfaeb.tar.gz |
assert op not freed in finalize_op() and rpeep()
This should never happen.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2501,6 +2501,7 @@ S_finalize_op(pTHX_ OP* o) { PERL_ARGS_ASSERT_FINALIZE_OP; + assert(o->op_type != OP_FREED); switch (o->op_type) { case OP_NEXTSTATE: @@ -13297,6 +13298,9 @@ Perl_rpeep(pTHX_ OP *o) if (!o || o->op_opt) return; + + assert(o->op_type != OP_FREED); + ENTER; SAVEOP(); SAVEVPTR(PL_curcop); |