summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-25 16:19:50 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-25 16:19:50 +0000
commit84386e14e5a1a25955637097f35813958ed6f356 (patch)
tree81903b87ae2d7d147ae405b1f980000d74af26f1 /perl.c
parentc3db7d9213b09a5852dab00368488f63a7625b9e (diff)
downloadperl-84386e14e5a1a25955637097f35813958ed6f356.tar.gz
Fix small leak with -F at interpreter destruction
p4raw-id: //depot/perl@29108
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 7353d3291b..078cf5de7d 100644
--- 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;