[PATCH 1/4] setupapi: Fix a memory leak (Valgrind).
Sven Baars
sbaars at codeweavers.com
Fri Apr 17 13:20:09 CDT 2020
Signed-off-by: Sven Baars <sbaars at codeweavers.com>
---
dlls/setupapi/devinst.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c
index a21959a262..7be1a34669 100644
--- a/dlls/setupapi/devinst.c
+++ b/dlls/setupapi/devinst.c
@@ -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)
--
2.24.0
More information about the wine-devel
mailing list