1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avfilter/drawtext: fix memory leak when using "reinit" runtime command

Free AVOption in drawtext private context when freeing old copy of drawtext
private context during processing of "reinit" runtime command.

Signed-off-by: Steven Zhou <steven.zhou@netint.ca>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Steven Zhou
2024-11-23 01:20:36 +00:00
committed by James Almer
parent 19045957af
commit d1fa9cf4b4

View File

@ -1226,6 +1226,7 @@ static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char
ctx->priv = old;
uninit(ctx);
av_opt_free(old);
av_freep(&old);
ctx->priv = new;