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:
parent
116eb50055
commit
75e878346a
|
@ -736,6 +736,7 @@ static void delete_device(struct device *device)
|
||||||
|
|
||||||
RegCloseKey(device->key);
|
RegCloseKey(device->key);
|
||||||
heap_free(device->instanceId);
|
heap_free(device->instanceId);
|
||||||
|
heap_free(device->drivers);
|
||||||
|
|
||||||
LIST_FOR_EACH_ENTRY_SAFE(iface, next, &device->interfaces,
|
LIST_FOR_EACH_ENTRY_SAFE(iface, next, &device->interfaces,
|
||||||
struct device_iface, entry)
|
struct device_iface, entry)
|
||||||
|
|
Loading…
Reference in New Issue