summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-04-19 12:26:35 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-04-19 12:26:35 +0000
commit181bc48df1acbf1e213b165d7e27c61b63e2b13e (patch)
tree7d7342c964e48deaf2a291197a58919f070e5439 /op.c
parent841bcc4d4c38349a457e324fa4064259dc55e791 (diff)
downloadperl-181bc48df1acbf1e213b165d7e27c61b63e2b13e.tar.gz
Fix for [perl #28919] : sometimes the function ck_ftst was trying
to read an op that was just freed, which was obviously illegal. p4raw-id: //depot/perl@22716
Diffstat (limited to 'op.c')
-rw-r--r--op.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/op.c b/op.c
index 46cc07b029..02144e872b 100644
--- a/op.c
+++ b/op.c
@@ -5088,6 +5088,7 @@ Perl_ck_ftst(pTHX_ OP *o)
gv_fetchpv(SvPVx(kid->op_sv, n_a), TRUE, SVt_PVIO));
op_free(o);
o = newop;
+ return o;
}
else {
if ((PL_hints & HINT_FILETEST_ACCESS) &&