Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-15 20:27:20 +0300
committerChristopher Faylor <me@cgf.cx>2003-01-15 20:27:20 +0300
commit77cb0c56ef3dd24d7e5e29bac4c556357ee4b7da (patch)
tree54fe6c50a6251e6ca9589030db5344e5ac2a27dd
parent53a6fe6ac506e04d766c0f34e0a3fd9684fc3569 (diff)
* cmalloc.cc (_cmalloc): Fix memory leak.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/cygheap.cc3
2 files changed, 5 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1e37b62d7..a561333e0 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-15 Pierre Humblet <pierre.humblet@ieee.org>
+
+ * cmalloc.cc (_cmalloc): Fix memory leak.
+
2003-01-15 Corinna Vinschen <corinna@vinschen.de>
* autoload.cc: Fix copyright date.
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index 0bfb06a7e..d0843e7ac 100644
--- a/winsup/cygwin/cygheap.cc
+++ b/winsup/cygwin/cygheap.cc
@@ -231,8 +231,7 @@ _cmalloc (int size)
}
else
{
- size = sz + sizeof (_cmalloc_entry);
- rvc = (_cmalloc_entry *) _csbrk (size);
+ rvc = (_cmalloc_entry *) _csbrk (sz);
if (!rvc)
{
cygheap_protect->release ();