Daniel Lehman : msi: Release record instead of free.
Module: wine Branch: master Commit: 7b3690dd7399cd64123554c8a6fc7e35dcbebbe1 URL: https://gitlab.winehq.org/wine/wine/-/commit/7b3690dd7399cd64123554c8a6fc7e3... Author: Daniel Lehman <dlehman25(a)gmail.com> Date: Wed Jun 7 20:10:18 2023 -0700 msi: Release record instead of free. ../dlls/msi/dialog.c:4476:11: warning: attempt to call free on non-heap object 'hdr' [-Wfree-nonheap-object] free( &rec->hdr ); ^ --- dlls/msi/dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 91e7a567f55..1374f3b6274 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -4473,7 +4473,7 @@ static UINT event_set_target_path( msi_dialog *dialog, const WCHAR *argument ) r = MSI_SetTargetPathW( dialog->package, argument, path ); free( path ); } - free( &rec->hdr ); + msiobj_release( &rec->hdr ); return r; }
participants (1)
-
Alexandre Julliard