[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
This commit is contained in:
Bișoc George 2019-03-01 20:24:18 +01:00 committed by Hermès BÉLUSCA - MAÏTO
parent b6262a25fd
commit 0bc8e2a5bb

View file

@ -1075,7 +1075,8 @@ CM_Add_Range(
}
else
{
HeapFree(GetProcessHeap(), 0, pRange);
UNIMPLEMENTED;
}
done: