Commit 381c4e7b authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

user32: Fix some leaks on error path (Coverity).

parent 7117219b
......@@ -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;
}
}
......
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