Update to heap.c

jeffl jeffl at defcen.gov.au
Tue Feb 10 02:18:05 CST 2004


When browsing ntdll/heap.c I noticed that the condition set would cause 
a memory leak if the unlikely event ever occured.  The patch causes a 
warning to be issued as well so that there is a record.

Jeff
-------------- next part --------------
Index: dlls/ntdll/heap.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/heap.c,v
retrieving revision 1.27
diff -r1.27 heap.c
407c407,412
<     if (pEnd > (char *)subheap + subheap->commitSize) pEnd = (char *)subheap + subheap->commitSize;
---
>     if (pEnd > (char *)subheap + subheap->commitSize)
>     {
>       WARN("Free arena %p, size %081x exceeds subheap %p commit size %081x",
>            ptr, size, subheap, subheap->commitSize);
>       pEnd = (char *)subheap + subheap->commitSize;
>     }



More information about the wine-patches mailing list