Author: pschweitzer Date: Sat Oct 24 10:00:24 2015 New Revision: 69670
URL: http://svn.reactos.org/svn/reactos?rev=69670&view=rev Log: [SETUPAPI] Don't leak memory
CID 716460
Modified: trunk/reactos/dll/win32/setupapi/devinst.c
Modified: trunk/reactos/dll/win32/setupapi/devinst.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/devinst.... ============================================================================== --- trunk/reactos/dll/win32/setupapi/devinst.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/setupapi/devinst.c [iso-8859-1] Sat Oct 24 10:00:24 2015 @@ -5777,6 +5777,8 @@ RegCloseKey(hEnumKey); if (hKey != NULL && hKey != key) RegCloseKey(hKey); + if (DriverKey) + HeapFree(GetProcessHeap(), 0, DriverKey); return key; }