[FFmpeg-cvslog] lavfi/silencedetect: add av_opt_free() call.
Clément Bœsch
git at videolan.org
Tue Oct 9 22:31:32 CEST 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Tue Oct 9 22:34:35 2012 +0200| [6ac5e3fe9d92c385ccae89d914b03e3bbc288698] | committer: Clément Bœsch
lavfi/silencedetect: add av_opt_free() call.
This avoids a memleak with noise_str.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6ac5e3fe9d92c385ccae89d914b03e3bbc288698
---
libavfilter/af_silencedetect.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/af_silencedetect.c b/libavfilter/af_silencedetect.c
index aea94b2..2ea5d7f 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;
}
More information about the ffmpeg-cvslog
mailing list