summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-09-08 00:53:50 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-09-08 00:53:50 +0000
commitabff13bb6f4392604279f83cbed17a9d16ae2d8f (patch)
tree796d5e5f2d11201f680a3900cf954486522b3709 /pp.c
parent64de36e6ad8b9ebb467d1f68ced94dc464b85104 (diff)
downloadperl-abff13bb6f4392604279f83cbed17a9d16ae2d8f.tar.gz
fix memory leak in C<sub f { split ' ', "a b" } f() while 1>
p4raw-id: //depot/perl@4103
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index 4d96370f7e..23510ebbbb 100644
--- a/pp.c
+++ b/pp.c
@@ -4870,6 +4870,7 @@ PP(pp_split)
else {
if (!AvREAL(ary)) {
AvREAL_on(ary);
+ AvREIFY_off(ary);
for (i = AvFILLp(ary); i >= 0; i--)
AvARRAY(ary)[i] = &PL_sv_undef; /* don't free mere refs */
}