Browse Source

avfilter/graphparser: Directly free filter memory if initialization fails

tags/n2.2-rc1
Diego Biurrun 11 years ago
parent
commit
cffecc0e7e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavfilter/graphparser.c

+ 1
- 0
libavfilter/graphparser.c View File

@@ -130,6 +130,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind
if (args)
av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args);
av_log(log_ctx, AV_LOG_ERROR, "\n");
avfilter_free(*filt_ctx);
return ret;
}



Loading…
Cancel
Save