msi: fix memory leaks (found by Smatch).

Lionel_Debroux lionel_debroux at yahoo.fr
Sun Dec 9 04:44:17 CST 2007


"msi_build_insertsql_data" and "MSI_DatabaseImport" in
dlls/msi/database.c get flagged by Michael Stefaniuc's unfree-wine.pl
script.

It looks there are more leaks than unfree-wine.pl reports, due to
constructs of the form
ptr = msi_realloc(ptr, size);
Fixed those as well.

2007-12-09  Lionel Debroux <lionel_debroux at yahoo.fr>
        * dlls/msi/database.c:
        msi: fix memory leaks (found by Smatch).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-msi-fix-memory-leaks-found-by-Smatch.patch
Type: text/x-diff
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071209/b94c4467/attachment.patch 


More information about the wine-patches mailing list