[FFmpeg-devel] [PATCH 2/3] fftools/graphprint: Fix leak of graphprint object

softworkz . softworkz at hotmail.com
Sat May 17 20:24:44 EEST 2025



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Mark
> Thompson
> Sent: Samstag, 17. Mai 2025 13:14
> To: ffmpeg-devel at ffmpeg.org
> Subject: [FFmpeg-devel] [PATCH 2/3] fftools/graphprint: Fix leak of graphprint
> object
> 
> ---
>  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)
> --

Hi Mark,

good catch, thanks for the patch!

LGTM

sw


More information about the ffmpeg-devel mailing list