[COVERITY][SETUPAPI] Release the blocks of memory when done
authorBișoc George <fraizeraust99@gmail.com>
Fri, 1 Mar 2019 19:24:18 +0000 (20:24 +0100)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Sat, 2 Mar 2019 19:39:09 +0000 (20:39 +0100)
pRange variable allocates blocks of memory from the heap by HeapAlloc() although this resource is never freed afterwards.

COVERITY CID 1427056

dll/win32/setupapi/cfgmgr.c

index 98b0913..0a3035d 100644 (file)
@@ -1075,7 +1075,8 @@ CM_Add_Range(
     }
     else
     {
-
+        HeapFree(GetProcessHeap(), 0, pRange);
+        UNIMPLEMENTED;
     }
 
 done: