cabinet: Fix a memory leak.

This commit is contained in:
Hans Leidekker 2008-07-19 19:54:10 +02:00 committed by Alexandre Julliard
parent b72d636062
commit 42506c94f2
1 changed files with 4 additions and 1 deletions

View File

@ -338,7 +338,10 @@ HRESULT WINAPI Extract(SESSION *dest, LPCSTR szCabName)
return E_FAIL;
if (GetFileAttributesA(dest->Destination) == INVALID_FILE_ATTRIBUTES)
return S_OK;
{
res = S_OK;
goto end;
}
/* split the cabinet name into path + name */
str = HeapAlloc(GetProcessHeap(), 0, lstrlenA(szCabName)+1);