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 (hr == E_OUTOFMEMORY)
|
||||
{
|
||||
fclose(file);
|
||||
goto xdg_user_dir_lookup_error;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue