Author: pschweitzer
Date: Sat Oct 24 10:09:44 2015
New Revision: 69671
URL:
http://svn.reactos.org/svn/reactos?rev=69671&view=rev
Log:
[SETUPAPI]
Fix a memory leak
CID 716468
Modified:
trunk/reactos/dll/win32/setupapi/query.c
Modified: trunk/reactos/dll/win32/setupapi/query.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/query.c…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/query.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/query.c [iso-8859-1] Sat Oct 24 10:09:44 2015
@@ -356,7 +356,10 @@
}
if (!SetupDiGetActualSectionToInstallW(hinf, source_disks_names, Section, MAX_PATH,
NULL, NULL))
+ {
+ HeapFree( GetProcessHeap(), 0, source_id );
return NULL;
+ }
if (!SetupFindFirstLineW( hinf, Section, source_id, context ) &&
!SetupFindFirstLineW( hinf, source_disks_names, source_id, context ))