Skip to content

Commit

Permalink
mpegts-mythtv.c: fix memory leak of exported PMT
Browse files Browse the repository at this point in the history
  • Loading branch information
ulmus-scott authored and bennettpeter committed Aug 15, 2022
1 parent d2dec3d commit dcb64e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c
Expand Up @@ -3888,6 +3888,8 @@ static void mpegts_free(MpegTSContext *ts)
for (i = 0; i < NB_PID_MAX; i++)
if (ts->pids[i])
mpegts_close_filter(ts, ts->pids[i]);

av_buffer_unref(&ts->stream->pmt_section); // MythTV
}

static int mpegts_read_close(AVFormatContext *s)
Expand Down

0 comments on commit dcb64e9

Please sign in to comment.