History

avfilter/graphparser: Directly free filter memory if initialization fails

Diego Biurrun committed 13 years ago

Commit cffecc01 parent 92352a91 file · +1 −0Browse files

Unified · Split

libavfilter/graphparser.c+1−0
@@ -130,6 +130,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind · 129 unmodified lines
130130 if (args)
131131 av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args);
132132 av_log(log_ctx, AV_LOG_ERROR, "\n");
133+ avfilter_free(*filt_ctx);
133134 return ret;
134135 }
135136

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