Skip to content
Snippets Groups Projects
Commit 6ac5e3fe authored by Clément Bœsch's avatar Clément Bœsch
Browse files

lavfi/silencedetect: add av_opt_free() call.

This avoids a memleak with noise_str.
parent bd2f8e8f
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) ...@@ -73,6 +73,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
silence->noise_str); silence->noise_str);
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
av_opt_free(silence);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment