Author: pschweitzer
Date: Sun May 17 10:09:50 2015
New Revision: 67804
URL:
http://svn.reactos.org/svn/reactos?rev=67804&view=rev
Log:
[SETUPAPI]
Fix a memory leak
Modified:
trunk/reactos/dll/win32/setupapi/interface.c
Modified: trunk/reactos/dll/win32/setupapi/interface.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/interfa…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/interface.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/interface.c [iso-8859-1] Sun May 17 10:09:50 2015
@@ -586,6 +586,7 @@
Slash = wcsrchr(Path, '\\');
if (!Guid || !Slash)
{
+ HeapFree(GetProcessHeap(), 0, Path);
SetLastError(ERROR_INVALID_PARAMETER);
return INVALID_HANDLE_VALUE;
}