[FFmpeg-devel] [PATCH 3/3] fftools/graphprint: Fix leak of graph section header string
Mark Thompson
sw at jkqxz.net
Sat May 17 14:14:11 EEST 2025
---
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);
--
2.47.2
More information about the ffmpeg-devel
mailing list