mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-30 13:50:50 +08:00
fftools/graphprint: Fix leak of graphprint object
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user