xdg: Fix a file handle leak (coverity).
This commit is contained in:
parent
eaa1b70603
commit
04fb8a913c
@ -942,7 +942,10 @@ HRESULT XDG_UserDirLookup(const char * const *xdg_dirs, const unsigned int num_d
|
|||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
{
|
{
|
||||||
if (hr == E_OUTOFMEMORY)
|
if (hr == E_OUTOFMEMORY)
|
||||||
|
{
|
||||||
|
fclose(file);
|
||||||
goto xdg_user_dir_lookup_error;
|
goto xdg_user_dir_lookup_error;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user