Skip to content

Commit

Permalink
vpp: avoid double free
Browse files Browse the repository at this point in the history
Free() might be called multiple times, we should avoid double free in
Free().

Signed-off-by: Haihao Xiang <[email protected]>
  • Loading branch information
xhaihao committed Nov 15, 2023
1 parent edeb2a1 commit bb7e4e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7180,6 +7180,8 @@ mfxStatus MfxFrameAllocResponse::Free( void )
NumFrameActual = m_numFrameActualReturnedByAllocFrames;
m_core->FreeFrames(this);
}

mids = NULL;
}

return MFX_ERR_NONE;
Expand Down

0 comments on commit bb7e4e0

Please sign in to comment.