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:
Zebediah Figura 2022-04-20 16:18:20 -05:00 committed by Alexandre Julliard
parent a1dda8c376
commit 93d8a86ce2
1 changed files with 1 additions and 1 deletions

View File

@ -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 */