This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove free() part of change #29045, which causes
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 19 Oct 2006 08:04:04 +0000 (08:04 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 19 Oct 2006 08:04:04 +0000 (08:04 +0000)
panics from miniperl in FreeBSD/multithreaded
p4raw-link: @29045 on //depot/perl: e47547a83f24974bde05453531e68d7dd8c5ec87

p4raw-id: //depot/perl@29046

perlio.c

index 63164c4..703085b 100644 (file)
--- a/perlio.c
+++ b/perlio.c
@@ -2397,15 +2397,6 @@ PerlIO_cleanup(pTHX)
        PerlIO_list_free(aTHX_ PL_def_layerlist);
        PL_def_layerlist = NULL;
     }
-
-#ifdef USE_ITHREADS
-    /* only main thread can free refcnt table */
-    if (PL_curinterp == aTHX)
-#endif
-    {
-       Safefree(PL_perlio_fd_refcnt);
-       PL_perlio_fd_refcnt = NULL;
-    }
 }