secur32: tests/main.c: don't free if not allocated

Dan Kegel dank at kegel.com
Tue Jun 3 09:17:48 CDT 2008


Found by Valgrind.  Fixes:

 Invalid free() / delete / delete[]
    at  RtlFreeHeap (heap.c:1287)
    by  FreeContextBuffer (secur32.c:702)
    by  func_main (main.c:215)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: secur32main.patch
Type: text/x-diff
Size: 1372 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080603/05a9ba8c/attachment.patch 


More information about the wine-patches mailing list