Skip to content

Commit

Permalink
[CM] Fix coverity CM resource leak issue
Browse files Browse the repository at this point in the history
Clean resource leak issue of CM
  • Loading branch information
XuanJessica authored and intel-mediadev committed Oct 10, 2023
1 parent 337ae2d commit cd2a7ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions media_driver/agnostic/common/cm/cm_kernel_ex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ CmSurfaceState* CmKernelEx::GetSurfaceState(CmSurface *surface, uint32_t index)
surfState = MOS_New(CmSurfaceStateVME, cmHalState);
if (surfState == nullptr)
{
MOS_DeleteArray(vmeValue);
return nullptr;
}
surfState->Initialize((CM_HAL_VME_ARG_VALUE *)vmeValue);
Expand Down

0 comments on commit cd2a7ce

Please sign in to comment.