Fix small leak with -F at interpreter destruction
Rafael Garcia-Suarez [Wed, 25 Oct 2006 16:19:50 +0000 (16:19 +0000)]
p4raw-id: //depot/perl@29108

perl.c

diff --git a/perl.c b/perl.c
index 7353d32..078cf5d 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -881,6 +881,11 @@ perl_destruct(pTHXx)
     SvREFCNT_dec(PL_rsfp_filters);
     PL_rsfp_filters = NULL;
 
+    if (PL_minus_F) {
+       Safefree(PL_splitstr);
+       PL_splitstr = NULL;
+    }
+
     /* switches */
     PL_preprocess   = FALSE;
     PL_minus_n      = FALSE;