Skip to content

Commit bcb3349

Browse files
zxyeSherry-Lin
authored andcommitted
[Decode] Fix virtual engine memory leak issue
Release pVEInterf to fix the mem leak issue. Change-Id: Id8b3f6793a70e24a063b2c8c357c4ae9b3eb95dc
1 parent 915fa0c commit bcb3349

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

media_driver/linux/common/os/mos_os_specific.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,10 @@ void Mos_Specific_Destroy(
17021702
pOsInterface->pOsContext->pfnDestroy(pOsInterface->pOsContext, pOsInterface->modulizedMosEnabled, modularizedGpuCtxEnabled);
17031703
pOsInterface->pOsContext = nullptr;
17041704
}
1705+
if (pOsInterface->pVEInterf)
1706+
{
1707+
MOS_FreeMemAndSetNull(pOsInterface->pVEInterf);
1708+
}
17051709
}
17061710

17071711
//!

0 commit comments

Comments
 (0)