History

avfilter/drawtext: stop resource leak

Fixes Coverity CID 1445099

Gyan Doshi committed 7 years ago

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

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
894894
895895 ctx->priv = old;
896896 uninit(ctx);
897− av_freep(old);
897+ av_freep(&old);
898898
899899 ctx->priv = new;
900900 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
903903
904904 fail:
905905 av_log(ctx, AV_LOG_ERROR, "Failed to process command. Continuing with existing parameters.\n");
906− av_freep(new);
906+ av_freep(&new);
907907 return ret;
908908 }
909909

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