Fix a memory leak.

This commit is contained in:
Mike McCormack 2005-10-28 16:41:02 +00:00 committed by Alexandre Julliard
parent 0857fc2919
commit 7d99f36d03

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