summaryrefslogtreecommitdiff
path: root/libavfilter/af_silencedetect.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-10-09 22:34:35 +0200
committerClément Bœsch <ubitux@gmail.com>2012-10-09 22:37:29 +0200
commit6ac5e3fe9d92c385ccae89d914b03e3bbc288698 (patch)
tree735f9a793fdc00ba2c6a7ad77b7b26cf81270773 /libavfilter/af_silencedetect.c
parentbd2f8e8f79e91e8dc1559078c0e1149e2e6bcc36 (diff)
lavfi/silencedetect: add av_opt_free() call.
This avoids a memleak with noise_str.
Diffstat (limited to 'libavfilter/af_silencedetect.c')
-rw-r--r--libavfilter/af_silencedetect.c1
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;
}