From 7d99f36d03cbd159e6062eb1614008b1ef7407f8 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Fri, 28 Oct 2005 16:41:02 +0000 Subject: [PATCH] Fix a memory leak. --- dlls/msi/install.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/msi/install.c b/dlls/msi/install.c index 2098cb2fc14..7e9fdad3b9f 100644 --- a/dlls/msi/install.c +++ b/dlls/msi/install.c @@ -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); }