Fix a memory leak.
This commit is contained in:
parent
0857fc2919
commit
7d99f36d03
|
@ -360,7 +360,10 @@ UINT MSI_SetTargetPathW(MSIPACKAGE *package, LPCWSTR szFolder,
|
|||
if (attrib == INVALID_FILE_ATTRIBUTES)
|
||||
{
|
||||
if (!CreateDirectoryW(szFolderPath,NULL))
|
||||
{
|
||||
msi_free( path );
|
||||
return ERROR_FUNCTION_FAILED;
|
||||
}
|
||||
RemoveDirectoryW(szFolderPath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue