From 4dfac410a4a784bb08a5aedce258e0f512a1b5dd Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 24 Oct 2015 10:00:24 +0000 Subject: [PATCH] [SETUPAPI] Don't leak memory CID 716460 svn path=/trunk/; revision=69670 --- reactos/dll/win32/setupapi/devinst.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/dll/win32/setupapi/devinst.c b/reactos/dll/win32/setupapi/devinst.c index 93934e726d7..d4160b2936d 100644 --- a/reactos/dll/win32/setupapi/devinst.c +++ b/reactos/dll/win32/setupapi/devinst.c @@ -5777,6 +5777,8 @@ cleanup: RegCloseKey(hEnumKey); if (hKey != NULL && hKey != key) RegCloseKey(hKey); + if (DriverKey) + HeapFree(GetProcessHeap(), 0, DriverKey); return key; } -- 2.17.1