https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0bc8e2a5bb733d4227b47…
commit 0bc8e2a5bb733d4227b474b50d1b8ebfd0b3ee09
Author: Bișoc George <fraizeraust99(a)gmail.com>
AuthorDate: Fri Mar 1 20:24:18 2019 +0100
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Mar 2 20:39:09 2019 +0100
[COVERITY][SETUPAPI] Release the blocks of memory when done
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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dll/win32/setupapi/cfgmgr.c b/dll/win32/setupapi/cfgmgr.c
index 98b09139b7..0a3035d6ae 100644
--- a/dll/win32/setupapi/cfgmgr.c
+++ b/dll/win32/setupapi/cfgmgr.c
@@ -1075,7 +1075,8 @@ CM_Add_Range(
}
else
{
-
+ HeapFree(GetProcessHeap(), 0, pRange);
+ UNIMPLEMENTED;
}
done: