cabinet: Fix a memory leak.
This commit is contained in:
parent
b72d636062
commit
42506c94f2
@ -338,7 +338,10 @@ HRESULT WINAPI Extract(SESSION *dest, LPCSTR szCabName)
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
if (GetFileAttributesA(dest->Destination) == INVALID_FILE_ATTRIBUTES)
|
if (GetFileAttributesA(dest->Destination) == INVALID_FILE_ATTRIBUTES)
|
||||||
return S_OK;
|
{
|
||||||
|
res = S_OK;
|
||||||
|
goto end;
|
||||||
|
}
|
||||||
|
|
||||||
/* split the cabinet name into path + name */
|
/* split the cabinet name into path + name */
|
||||||
str = HeapAlloc(GetProcessHeap(), 0, lstrlenA(szCabName)+1);
|
str = HeapAlloc(GetProcessHeap(), 0, lstrlenA(szCabName)+1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user