Author: pschweitzer
Date: Sat Oct 24 09:54:54 2015
New Revision: 69669
URL:
http://svn.reactos.org/svn/reactos?rev=69669&view=rev
Log:
[SETUPAPI]
Fix a memory leak
CID 1250296
Modified:
trunk/reactos/dll/win32/setupapi/devclass.c
Modified: trunk/reactos/dll/win32/setupapi/devclass.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/devclas…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/devclass.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/devclass.c [iso-8859-1] Sat Oct 24 09:54:54 2015
@@ -552,6 +552,9 @@
if (hKey != INVALID_HANDLE_VALUE)
RegCloseKey(hKey);
+ if (Buffer && !ret)
+ MyFree(Buffer);
+
return ret;
}