[FFmpeg-cvslog] fftools/graphprint: Fix leak of graphprint object
Mark Thompson
git at videolan.org
Sun May 18 17:20:57 EEST 2025
ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Sat May 17 11:59:00 2025 +0100| [2070cc138ba7ecc702e381ee243997076897d4dc] | committer: Mark Thompson
fftools/graphprint: Fix leak of graphprint object
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2070cc138ba7ecc702e381ee243997076897d4dc
---
fftools/graph/graphprint.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fftools/graph/graphprint.c b/fftools/graph/graphprint.c
index fc94a75797..9e3e03274a 100644
--- a/fftools/graph/graphprint.c
+++ b/fftools/graph/graphprint.c
@@ -862,6 +862,8 @@ static void uninit_graphprint(GraphPrintContext *gpc)
// Finalize the print buffer if it was initialized
av_bprint_finalize(&gpc->pbuf, NULL);
+
+ av_freep(&gpc);
}
static int init_graphprint(GraphPrintContext **pgpc, AVBPrint *target_buf)
More information about the ffmpeg-cvslog
mailing list