From: Pierre Schweitzer Date: Sat, 24 Oct 2015 10:00:24 +0000 (+0000) Subject: [SETUPAPI] X-Git-Tag: ReactOS-0.4.0~385 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=4dfac410a4a784bb08a5aedce258e0f512a1b5dd;hp=bd3ef669f3d6dbf0ec21c53c2dc896892d46082c [SETUPAPI] Don't leak memory CID 716460 svn path=/trunk/; revision=69670 --- 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; }