Fix a memory leak.

oldstable
Mike McCormack 2005-10-28 16:41:02 +00:00 committed by Alexandre Julliard
parent 0857fc2919
commit 7d99f36d03
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}