History

avfilter/drawtext: stop resource leak

Fixes Coverity CID 1445099

Gyan Doshi committed 7 years ago

Commit 8cf947c1 parent 87ee9d51 file · +2 −2Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_drawtext.c+2−2
@@ -894,7 +894,7 @@ static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char · 893 unmodified lines
894 894
895 ctx->priv = old;895 ctx->priv = old;
896 uninit(ctx);896 uninit(ctx);
897 av_freep(old);897 av_freep(&old);
898 898
899 ctx->priv = new;899 ctx->priv = new;
900 return config_input(ctx->inputs[0]);900 return config_input(ctx->inputs[0]);
@@ -903,7 +903,7 @@ static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char · 2 unmodified lines
903 903
904fail:904fail:
905 av_log(ctx, AV_LOG_ERROR, "Failed to process command. Continuing with existing parameters.\n");905 av_log(ctx, AV_LOG_ERROR, "Failed to process command. Continuing with existing parameters.\n");
906 av_freep(new);906 av_freep(&new);
907 return ret;907 return ret;
908}908}
909 909

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t