projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3db7d9
)
Fix small leak with -F at interpreter destruction
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Wed, 25 Oct 2006 16:19:50 +0000
(16:19 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Wed, 25 Oct 2006 16:19:50 +0000
(16:19 +0000)
p4raw-id: //depot/perl@29108
perl.c
patch
|
blob
|
history
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;