diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2019-05-15 12:36:05 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2019-05-16 10:30:28 +0530 |
commit | 8cf947ca4c603f14cdb016eff0c341cb37ec09cc (patch) | |
tree | e01ba48c665b66dc9968cb0d3c36310ad85285ec /libavfilter | |
parent | 87ee9d580c44a949a1b0750950286954a952a289 (diff) | |
download | ffmpeg-8cf947ca4c603f14cdb016eff0c341cb37ec09cc.tar.gz |
avfilter/drawtext: stop resource leak
Fixes Coverity CID 1445099
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_drawtext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index b166574d71..01cd7fa122 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -894,7 +894,7 @@ static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char ctx->priv = old; uninit(ctx); - av_freep(old); + av_freep(&old); ctx->priv = new; return config_input(ctx->inputs[0]); @@ -903,7 +903,7 @@ static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char fail: av_log(ctx, AV_LOG_ERROR, "Failed to process command. Continuing with existing parameters.\n"); - av_freep(new); + av_freep(&new); return ret; } |