summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-04-05 23:32:33 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-04-05 23:32:33 +0000
commitfc80cf79f6ce54c5e5487bc877eda643ef0d8104 (patch)
treedb36525101f047e5bb8fd1b968f6759a3629176c /sv.c
parent8931a351763bab7adf45abbc170bb711ffddf83b (diff)
downloadperl-fc80cf79f6ce54c5e5487bc877eda643ef0d8104.tar.gz
[win32] fix memory leaks in offer_nice_chunk()
p4raw-id: //depot/win32/perl@882
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 2711551217..ff9986771e 100644
--- a/sv.c
+++ b/sv.c
@@ -400,6 +400,10 @@ sv_free_arenas(void)
Safefree((void *)sva);
}
+ if (nice_chunk)
+ Safefree(nice_chunk);
+ nice_chunk = Nullch;
+ nice_chunk_size = 0;
sv_arenaroot = 0;
sv_root = 0;
}