setupapi: Avoid leaking subKey in SETUPDI_AddDeviceInterfaces().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a1dda8c376
commit
93d8a86ce2
|
@ -2281,8 +2281,8 @@ static void SETUPDI_AddDeviceInterfaces(struct device *device, HKEY key,
|
|||
(BYTE *)symbolicLink, &len);
|
||||
if (!l && dataType == REG_SZ)
|
||||
SETUPDI_SetInterfaceSymbolicLink(iface, symbolicLink);
|
||||
RegCloseKey(subKey);
|
||||
}
|
||||
RegCloseKey(subKey);
|
||||
}
|
||||
}
|
||||
/* Allow enumeration to continue */
|
||||
|
|
Loading…
Reference in New Issue