forked from Mirrors/wine-wine
user32: Fix some leaks on error path (Coverity).
Signed-off-by: Sven Baars <sven.wine@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>stable
parent
7117219b3d
commit
381c4e7b66
|
@ -141,6 +141,8 @@ static void find_hid_devices(void)
|
|||
if (!hid_devices)
|
||||
{
|
||||
ERR("Failed to allocate memory.\n");
|
||||
CloseHandle(file);
|
||||
heap_free(path);
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue