diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-10-09 22:34:35 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-10-09 22:37:29 +0200 |
commit | 6ac5e3fe9d92c385ccae89d914b03e3bbc288698 (patch) | |
tree | 735f9a793fdc00ba2c6a7ad77b7b26cf81270773 /libavfilter | |
parent | bd2f8e8f79e91e8dc1559078c0e1149e2e6bcc36 (diff) | |
download | ffmpeg-6ac5e3fe9d92c385ccae89d914b03e3bbc288698.tar.gz |
lavfi/silencedetect: add av_opt_free() call.
This avoids a memleak with noise_str.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_silencedetect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/af_silencedetect.c b/libavfilter/af_silencedetect.c index aea94b21c7..2ea5d7f5bc 100644 --- a/libavfilter/af_silencedetect.c +++ b/libavfilter/af_silencedetect.c @@ -73,6 +73,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) silence->noise_str); return AVERROR(EINVAL); } + av_opt_free(silence); return 0; } |