summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-11-14 22:31:14 +0000
committerNicholas Clark <nick@ccl4.org>2005-11-14 22:31:14 +0000
commit0565a181ab920bd3cc76f2ab45d62768abfcaf8d (patch)
tree3bef6b0b82a543d722fd1ad8d544c18184053a02 /op.c
parent80002e0d612c016105daaa578514ef1b726842f4 (diff)
downloadperl-0565a181ab920bd3cc76f2ab45d62768abfcaf8d.tar.gz
Mark all places where perl needs to look at a possibly-freed scalar
with a macro SvIS_FREED(sv) p4raw-id: //depot/perl@26132
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index a3dee91b33..d9cb1d0b65 100644
--- a/op.c
+++ b/op.c
@@ -407,7 +407,7 @@ Perl_op_clear(pTHX_ OP *o)
clear_pmop:
{
HV * const pmstash = PmopSTASH(cPMOPo);
- if (pmstash && SvREFCNT(pmstash)) {
+ if (pmstash && !SvIS_FREED(pmstash)) {
MAGIC * const mg = mg_find((SV*)pmstash, PERL_MAGIC_symtab);
if (mg) {
PMOP *pmop = (PMOP*) mg->mg_obj;