Commit c85b1405 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

setupapi: Fix a leak on early return in SetupDiGetDriverInfoDetailA (Valgrind).

parent 75e87834
......@@ -4887,7 +4887,10 @@ BOOL WINAPI SetupDiGetDriverInfoDetailA(HDEVINFO devinfo, SP_DEVINFO_DATA *devic
if (ret_size)
*ret_size = size_needed;
if (!detail_data)
{
SetupCloseInfFile(hinf);
return TRUE;
}
detail_data->CompatIDsLength = detail_data->CompatIDsOffset = 0;
detail_data->HardwareID[0] = 0;
......
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