summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-27 20:09:27 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-27 20:09:27 +0000
commitefe6c6a19b7c016fee2f63a93a8d6f569c5793ba (patch)
treed0c57b32fc75125889ffd0767f31618968b73825 /mg.c
parent8668bebd28812651f7fc2b6e9fcb8047bd7f06e8 (diff)
downloadperl-efe6c6a19b7c016fee2f63a93a8d6f569c5793ba.tar.gz
A shot in the dark.
p4raw-id: //depot/perl@16820
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mg.c b/mg.c
index 299d1bbb11..617603409f 100644
--- a/mg.c
+++ b/mg.c
@@ -364,11 +364,11 @@ Perl_mg_free(pTHX_ SV *sv)
if (mg->mg_type == PERL_MAGIC_tiedscalar && SvROK(obj) &&
(SvRV(obj) == sv || GvIO(SvRV(obj)) == (IO *) sv)) {
/* We are already free'ing the self-tied thing
- so SvREFCNT_dec must not.
+ so must not SvREFCNT_dec.
*/
SvROK_off(obj);
- }
- SvREFCNT_dec(obj);
+ } else
+ SvREFCNT_dec(obj);
}
Safefree(mg);
}