diff options
author | Mark Thompson <sw@jkqxz.net> | 2025-05-17 11:57:56 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2025-05-18 15:17:41 +0100 |
commit | c18d1b63abcb1b9ff8be83225d51cc630ac208d5 (patch) | |
tree | 144b959659948854b13be068cab88d2e6b91f422 | |
parent | 2070cc138ba7ecc702e381ee243997076897d4dc (diff) | |
download | ffmpeg-c18d1b63abcb1b9ff8be83225d51cc630ac208d5.tar.gz |
fftools/graphprint: Fix leak of graph section header string
-rw-r--r-- | fftools/graph/graphprint.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |