Skip to content

Commit

Permalink
[Decode] Fix memleak in ULT
Browse files Browse the repository at this point in the history
  • Loading branch information
Jexu committed Jul 30, 2024
1 parent 8c6858b commit 67ef46f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions media_driver/linux/common/ddi/media_libva.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3963,6 +3963,11 @@ VAStatus DdiMedia_DestroyBuffer (
break;
//return va_STATUS_SUCCESS;
}
if (buf->lock)
{
//buf->lock->unlock(); //todo: lock ahead firstly?
MOS_Delete(buf->lock); //todo: delete lock to avoid leak? check MOS_FreeMemory(buf) in code
}
MOS_FreeMemory(buf);

DdiMedia_DestroyBufFromVABufferID(mediaCtx, buffer_id);
Expand Down

0 comments on commit 67ef46f

Please sign in to comment.