summaryrefslogtreecommitdiff
path: root/perl.h
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 /perl.h
parent8931a351763bab7adf45abbc170bb711ffddf83b (diff)
downloadperl-fc80cf79f6ce54c5e5487bc877eda643ef0d8104.tar.gz
[win32] fix memory leaks in offer_nice_chunk()
p4raw-id: //depot/win32/perl@882
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index cd0f2bb11c..27e7241838 100644
--- a/perl.h
+++ b/perl.h
@@ -2063,6 +2063,9 @@ enum {
nice_chunk = (char*)(chunk); \
nice_chunk_size = (chunk_size); \
} \
+ else { \
+ Safefree(chunk); \
+ } \
UNLOCK_SV_MUTEX; \
} while (0)