Skip to content

Commit

Permalink
[VP] fix_coverity
Browse files Browse the repository at this point in the history
fix_coverity leak
  • Loading branch information
jiafengy1 authored and intel-mediadev committed Sep 8, 2023
1 parent 578c936 commit 91120ce
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,11 @@ MOS_STATUS MemoryBlockManager::RegisterHeap(uint32_t heapId, uint32_t size , boo
{
MemoryBlockInternal *adjacencyListBegin = nullptr;
adjacencyListBegin = MOS_New(MemoryBlockInternal);
HEAP_CHK_NULL(adjacencyListBegin);
if (adjacencyListBegin == nullptr)
{
MOS_Delete(heap);
HEAP_CHK_STATUS(MOS_STATUS_NULL_POINTER);
}
auto block = GetBlockFromPool();
if (block == nullptr)
{
Expand Down

0 comments on commit 91120ce

Please sign in to comment.