save_delete() Safefree() doesn't (anymore?) work with shared
Jarkko Hietaniemi [Mon, 8 Jan 2001 17:30:52 +0000 (17:30 +0000)]
strings, one test failure in op/misc and almost all of lib/b.
(Outcomments #8369.)

p4raw-id: //depot/perl@8369

scope.c

diff --git a/scope.c b/scope.c
index 8a32017..d4ea391 100644 (file)
--- a/scope.c
+++ b/scope.c
@@ -852,7 +852,7 @@ Perl_leave_scope(pTHX_ I32 base)
            ptr = SSPOPPTR;
            (void)hv_delete(hv, (char*)ptr, (U32)SSPOPINT, G_DISCARD);
            SvREFCNT_dec(hv);
-           Safefree(ptr);
+           /* Safefree(ptr); */ /* Does not work with shared strings. */
            break;
        case SAVEt_DESTRUCTOR:
            ptr = SSPOPPTR;