aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-07 13:44:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-07 13:44:26 +0200
commit2d6f31730c60bd15f2c22ca3ca24aae49a34eddd (patch)
tree29f369381fc22591bc641879f989cc0c04289b8c
parentaba873bbd057a5fd982496568fa04c6a23a60689 (diff)
downloadffmpeg-2d6f31730c60bd15f2c22ca3ca24aae49a34eddd.tar.gz
avfilter/af_adelay: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/af_adelay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_adelay.c b/libavfilter/af_adelay.c
index cfc6b1fdb5..ef60f43727 100644
--- a/libavfilter/af_adelay.c
+++ b/libavfilter/af_adelay.c
@@ -246,7 +246,7 @@ static av_cold void uninit(AVFilterContext *ctx)
int i;
for (i = 0; i < s->nb_delays; i++)
- av_free(s->chandelay[i].samples);
+ av_freep(&s->chandelay[i].samples);
av_freep(&s->chandelay);
}