From 0bc8e2a5bb733d4227b474b50d1b8ebfd0b3ee09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bi=C8=99oc=20George?= Date: Fri, 1 Mar 2019 20:24:18 +0100 Subject: [PATCH] [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 98b09139b75..0a3035d6aea 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: