Skip to content

Commit

Permalink
Fix memory leak in the lossless mpeg2 transcoder if we fail to decode…
Browse files Browse the repository at this point in the history
… a frame. Coverity 700681
  • Loading branch information
stuartm committed Dec 17, 2012
1 parent 2307825 commit 4e3c2d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/programs/mythtranscode/mpeg2fix.cpp
Expand Up @@ -1628,7 +1628,10 @@ MPEG2frame *MPEG2fixup::DecodeToFrame(int frameNum, int skip_reset)
{
SetFrameNum(tmpFrame->framePos, ++tmpFrameNum);
if (ProcessVideo(tmpFrame, img_decoder) < 0)
{
delete tmpFrame;
return NULL;
}
}

framePool.enqueue(tmpFrame);
Expand Down

0 comments on commit 4e3c2d4

Please sign in to comment.