[FFmpeg-cvslog] fftools/graphprint: Fix leak of graph section header string

Mark Thompson git at videolan.org
Sun May 18 17:20:59 EEST 2025


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Sat May 17 11:57:56 2025 +0100| [c18d1b63abcb1b9ff8be83225d51cc630ac208d5] | committer: Mark Thompson

fftools/graphprint: Fix leak of graph section header string

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c18d1b63abcb1b9ff8be83225d51cc630ac208d5
---

 fftools/graph/graphprint.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fftools/graph/graphprint.c b/fftools/graph/graphprint.c
index 9e3e03274a..50f1a2ecdc 100644
--- a/fftools/graph/graphprint.c
+++ b/fftools/graph/graphprint.c
@@ -780,6 +780,8 @@ static int print_streams(GraphPrintContext *gpc, InputFile **ifiles, int nb_ifil
 
         avtext_print_section_header(tfc, &sec_ctx, SECTION_ID_OUTPUTSTREAMS);
 
+        av_freep(&sec_ctx.context_id);
+
         for (int i = 0; i < of->nb_streams; i++) {
             OutputStream *ost = of->streams[i];
             const AVCodecDescriptor *codec_desc = avcodec_descriptor_get(ost->st->codecpar->codec_id);



More information about the ffmpeg-cvslog mailing list