From dcb64e970605d6b58a6d36da9ea83055fe40dd30 Mon Sep 17 00:00:00 2001 From: Scott Theisen Date: Sat, 30 Jul 2022 15:40:36 -0400 Subject: [PATCH] mpegts-mythtv.c: fix memory leak of exported PMT --- mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c b/mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c index 0a60bd4b2de..7534f37d854 100644 --- a/mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c +++ b/mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c @@ -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)