[FFmpeg-cvslog] lavfi/aecho: fix invalid free
Paul B Mahol
git at videolan.org
Sun Jul 14 01:47:11 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jul 13 23:45:05 2013 +0000| [fc6ca373163830f431ffab4b11d79012b2311485] | committer: Paul B Mahol
lavfi/aecho: fix invalid free
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fc6ca373163830f431ffab4b11d79012b2311485
---
libavfilter/af_aecho.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/af_aecho.c b/libavfilter/af_aecho.c
index 09bb2f6..e73252b 100644
--- a/libavfilter/af_aecho.c
+++ b/libavfilter/af_aecho.c
@@ -93,7 +93,7 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep(&s->samples);
if (s->delayptrs)
- av_freep(s->delayptrs[0]);
+ av_freep(&s->delayptrs[0]);
av_freep(&s->delayptrs);
}
@@ -256,7 +256,7 @@ static int config_output(AVFilterLink *outlink)
if (s->delayptrs)
- av_freep(s->delayptrs[0]);
+ av_freep(&s->delayptrs[0]);
av_freep(&s->delayptrs);
return av_samples_alloc_array_and_samples(&s->delayptrs, NULL,
More information about the ffmpeg-cvslog
mailing list