setupapi: Fix a memory leak (Valgrind).

Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2020-04-17 20:20:09 +02:00 committed by Alexandre Julliard
parent 116eb50055
commit 75e878346a
1 changed files with 1 additions and 0 deletions

View File

@ -736,6 +736,7 @@ static void delete_device(struct device *device)
RegCloseKey(device->key);
heap_free(device->instanceId);
heap_free(device->drivers);
LIST_FOR_EACH_ENTRY_SAFE(iface, next, &device->interfaces,
struct device_iface, entry)