Commit 8cf947ca authored by Gyan Doshi's avatar Gyan Doshi

avfilter/drawtext: stop resource leak

Fixes Coverity CID 1445099
parent 87ee9d58
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment