msi:MsiSourceListEnumMediaDisksW: free original string, not substring

Dan Kegel dank at kegel.com
Tue Jun 3 08:29:29 CDT 2008


Found via valgrind:

 Invalid free() / delete / delete[]
    by msi_free (msipriv.h:965)
    by MsiSourceListEnumMediaDisksW (source.c:324)
  Address 0x7f01b2ac is 12 bytes inside a block of size 54 alloc'd
    by msi_alloc (msipriv.h:945)
    by MsiSourceListEnumMediaDisksW (source.c:273)

'data' is freed later, so don't touch it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msisource.patch
Type: text/x-diff
Size: 658 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080603/66c113f3/attachment.patch 


More information about the wine-patches mailing list