xdg: Fix a file handle leak (coverity).

This commit is contained in:
Frédéric Delanoy 2012-12-26 12:09:58 +01:00 committed by Alexandre Julliard
parent eaa1b70603
commit 04fb8a913c
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}
}