aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-07-13 23:45:05 +0000
committerPaul B Mahol <onemda@gmail.com>2013-07-13 23:45:05 +0000
commitfc6ca373163830f431ffab4b11d79012b2311485 (patch)
treee623c8d2a4b482f111a7f9506ab0f0fc9fdf334b
parentf486d7e924ff684039181d8f0f37a360b846e379 (diff)
downloadffmpeg-fc6ca373163830f431ffab4b11d79012b2311485.tar.gz
lavfi/aecho: fix invalid free
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavfilter/af_aecho.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_aecho.c b/libavfilter/af_aecho.c
index 09bb2f69e6..e73252b4a0 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,