winmm: msiSendStringW: Don't free substring after original string has already been free'd

Zac Brown zac at zacbrown.org
Tue Jun 3 16:35:06 CDT 2008


Found via valgrind:

Invalid free() / delete / delete[]
     at  notify_free (heap.c:199)
     by  RtlFreeHeap (heap.c:1284)
     by  mciSendStringW (mci.c:1446)
   Address 0x7f01d714 is not stack'd, malloc'd or (recently) free'd

'verb' is already free'd, so don't free a substring('devAlias') of 'verb'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmm-no-free-substr.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080603/fe29fb38/attachment.bin 


More information about the wine-patches mailing list