Commit a5a99047 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

cabinet: Reorder code to make sure str is freed (coverity).

parent 6f8ac7cf
......@@ -365,6 +365,7 @@ HRESULT WINAPI Extract(SESSION *dest, LPCSTR szCabName)
if ((end = strrchr(str, '\\')))
{
path = str;
end++;
name = HeapAlloc( GetProcessHeap(), 0, strlen(end) + 1 );
if (!name)
......@@ -374,7 +375,6 @@ HRESULT WINAPI Extract(SESSION *dest, LPCSTR szCabName)
}
strcpy( name, end );
*end = 0;
path = str;
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment