mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[WINESYNC] msi: Fix memory leak in get_fusion_filename (Coverity).
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id ad90181e1407bc4ffe81e55f07f83b23c09cccb8 by Alex Henrie <alexhenrie24@gmail.com>
This commit is contained in:
parent
6aefc5b976
commit
848267813e
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue