diff options
author | Stephen McCamant <smcc@mit.edu> | 1998-08-02 16:44:34 -0500 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-08-03 16:30:20 +0000 |
commit | 8dd3ba4056bdb9f9d2c311597eccd17234c5bda0 (patch) | |
tree | 5af444a00c025e3e96f92d56087fae69eef67536 /op.c | |
parent | 7120fed67e3f383b4203dc04a44dbe812dc6d370 (diff) | |
download | perl-8dd3ba4056bdb9f9d2c311597eccd17234c5bda0.tar.gz |
fix segfault when threadsv is used as foreach itervar
Message-Id: <13765.8641.997452.14516@alias-2.pr.mcs.net>
Subject: [PATCH] threadsv index in enteriter targ in op_free()
p4raw-id: //depot/maint-5.005/perl@1721
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -582,6 +582,10 @@ op_free(OP *o) o->op_targ = 0; /* Was holding hints. */ break; #ifdef USE_THREADS + case OP_ENTERITER: + if (!(o->op_flags & OPf_SPECIAL)) + break; + /* FALL THROUGH */ case OP_THREADSV: o->op_targ = 0; /* Was holding index into thr->threadsv AV. */ break; |