mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
cabinet: Fix a memory leak.
This commit is contained in:
parent
b72d636062
commit
42506c94f2
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue