Commit 8f19483d authored by Nicolas George's avatar Nicolas George

examples/filtering_audio: fix a memory leak.

parent 2ae5af80
......@@ -114,6 +114,7 @@ static int init_filters(const char *filters_descr)
abuffersink_params->packing_fmts = packing_fmts;
ret = avfilter_graph_create_filter(&buffersink_ctx, abuffersink, "out",
NULL, abuffersink_params, filter_graph);
av_free(abuffersink_params);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Cannot create audio buffer sink\n");
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