https://git.reactos.org/?p=reactos.git;a=commitdiff;h=848267813e68a5ac66522…
commit 848267813e68a5ac665220dd58aea1c0ea2f6bb9
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Mon Mar 14 21:12:25 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:28:44 2022 +0100
[WINESYNC] msi: Fix memory leak in get_fusion_filename (Coverity).
Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com>
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id ad90181e1407bc4ffe81e55f07f83b23c09cccb8 by Alex Henrie
<alexhenrie24(a)gmail.com>
---
dll/win32/msi/package.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dll/win32/msi/package.c b/dll/win32/msi/package.c
index 14ddcb79a57..b65b9e98959 100644
--- a/dll/win32/msi/package.c
+++ b/dll/win32/msi/package.c
@@ -559,6 +559,7 @@ static LPWSTR get_fusion_filename(MSIPACKAGE *package)
GetWindowsDirectoryW(windir, MAX_PATH);
len = lstrlenW(windir) + lstrlenW(L"Microsoft.NET\\Framework\\") +
lstrlenW(L"v2.0.50727") +
lstrlenW(L"fusion.dll") + 3;
+ msi_free(filename);
if (!(filename = msi_alloc(len * sizeof(WCHAR)))) return NULL;
lstrcpyW(filename, windir);