DESTROY called in scalar context ?
Rafael Garcia-Suarez [Tue, 29 Oct 2002 22:04:23 +0000 (23:04 +0100)]
Message-Id: <20021029220423.6f8e6600.rgarciasuarez@free.fr>

p4raw-id: //depot/perl@18186

sv.c

diff --git a/sv.c b/sv.c
index cba547c..4d48bc7 100644 (file)
--- 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;