From: Rafael Garcia-Suarez Date: Tue, 29 Oct 2002 22:04:23 +0000 (+0100) Subject: DESTROY called in scalar context ? X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=44389ee9cadafd577d385ebdd55fa3c406c4202a;p=p5sagit%2Fp5-mst-13.2.git DESTROY called in scalar context ? Message-Id: <20021029220423.6f8e6600.rgarciasuarez@free.fr> p4raw-id: //depot/perl@18186 --- diff --git a/sv.c b/sv.c index cba547c..4d48bc7 100644 --- a/sv.c +++ b/sv.c @@ -5185,7 +5185,7 @@ Perl_sv_clear(pTHX_ register SV *sv) PUSHMARK(SP); PUSHs(&tmpref); PUTBACK; - call_sv((SV*)destructor, G_DISCARD|G_EVAL|G_KEEPERR); + call_sv((SV*)destructor, G_DISCARD|G_EVAL|G_KEEPERR|G_VOID); SvREFCNT(sv)--; POPSTACK; SPAGAIN;