msi:MsiSourceListEnumMediaDisksW: free original string, not substring

Steven Edwards winehacker at
Tue Jun 3 15:53:25 CDT 2008

On Tue, Jun 3, 2008 at 9:29 AM, Dan Kegel <dank at> wrote:
> 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.

I think I know of one application that might be affected by this. With
the Project 2003 installer it reports an error I believe in this

Steven Edwards

"There is one thing stronger than all the armies in the world, and
that is an idea whose time has come." - Victor Hugo

More information about the wine-patches mailing list