OSDN Git Service
(root)
/
pf3gnuchains
/
sourceware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90a5d7b
)
* cmalloc.cc (_cmalloc): Fix memory leak.
author
cgf
<cgf>
Wed, 15 Jan 2003 17:27:18 +0000
(17:27 +0000)
committer
cgf
<cgf>
Wed, 15 Jan 2003 17:27:18 +0000
(17:27 +0000)
winsup/cygwin/ChangeLog
patch
|
blob
|
history
winsup/cygwin/cygheap.cc
patch
|
blob
|
history
diff --git
a/winsup/cygwin/ChangeLog
b/winsup/cygwin/ChangeLog
index
1e37b62
..
a561333
100644
(file)
--- 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
0bfb06a
..
d0843e7
100644
(file)
--- 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 ();