• calvin's avatar
    branches/zip: fix Mantis issue #74 Memory leak on Windows · 6df13976
    calvin authored
    The memory leak was due to wrong parameters passed into VirtualFree()
    call. So, the call fails with Windows error 87. MEM_DECOMMIT can NOT be
    used along with MEM_RELEASE. And if the parameter is MEM_RELEASE, the
    size parameter must be 0. The function frees the entire region that is
    reserved in the initial allocation call to VirtualAlloc.
    
    This issue was introduced by r984.
    
    Approved by:	Heikki (on IM)
    6df13976
os0proc.c 5.97 KB