You've already forked FFmpeg
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user