[Bug 18488] New: RtlReAllocateHeap memory leak

wine-bugs at winehq.org wine-bugs at winehq.org
Fri May 15 20:28:37 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=18488

           Summary: RtlReAllocateHeap memory leak
           Product: Wine
           Version: 1.1.21
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ntdll
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: winehq at mahadri.com


uTorrent with over 250 torrents loaded leaks ~40MB/hour.  After running
uTorrent for an hour under valgrind, it reported that ~40MB in 155 blocks
allocated in RtlReAllocateHeap were possibly lost.  I commented out
wine-1.1.21/dlls/ntdll/heap.c:1553-1560, and uTorrent seems to run fine without
leaking memory.  The commented-out code is:

        if (rounded_size >= HEAP_MIN_LARGE_BLOCK_SIZE && (flags &
HEAP_GROWABLE))
        {
            if (!(ret = allocate_large_block( heapPtr, flags, size ))) goto
oom;
            notify_alloc( ret, size, flags & HEAP_ZERO_MEMORY );
            memcpy( ret, pArena + 1, oldActualSize );
            /* FIXME: free old memory here! */
            goto done;
        }

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list