* cmalloc.cc (_cmalloc): Fix memory leak.

This commit is contained in:
Christopher Faylor 2003-01-15 17:27:20 +00:00
parent 53a6fe6ac5
commit 77cb0c56ef
2 changed files with 5 additions and 2 deletions

View File

@ -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.

View File

@ -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 ();