ffmpeg | branch: master | Mark Thompson <s...@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)

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to