Sven Baars : setupapi: Fix a memory leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Fri Aug 7 10:42:30 CDT 2020


Module: wine
Branch: stable
Commit: e393f2d3ee37b5ea5c0c7b4c8a1a479223bb9437
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e393f2d3ee37b5ea5c0c7b4c8a1a479223bb9437

Author: Sven Baars <sbaars at codeweavers.com>
Date:   Fri Apr 17 20:20:09 2020 +0200

setupapi: Fix a memory leak (Valgrind).

Signed-off-by: Sven Baars <sbaars at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 75e878346a61945c893ff989a3b0e4e4b1c6daf4)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/setupapi/devinst.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c
index f3546e6d96..b2bdc4b4d9 100644
--- a/dlls/setupapi/devinst.c
+++ b/dlls/setupapi/devinst.c
@@ -734,6 +734,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)




More information about the wine-cvs mailing list