aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-27 15:49:13 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-27 15:49:13 +0100
commit6d639ecf44722019566bd84d43e4f30322e64b31 (patch)
treef0411a8054034183b53665f6f7effe4fe75db115 /libavutil
parent336bb3f706ea86239f2bb1cadff3a7c40f95d130 (diff)
downloadffmpeg-6d639ecf44722019566bd84d43e4f30322e64b31.tar.gz
avutil/audio_fifo: use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/audio_fifo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/audio_fifo.c b/libavutil/audio_fifo.c
index c3aadfdab7..574907aa32 100644
--- a/libavutil/audio_fifo.c
+++ b/libavutil/audio_fifo.c
@@ -51,7 +51,7 @@ void av_audio_fifo_free(AVAudioFifo *af)
if (af->buf[i])
av_fifo_free(af->buf[i]);
}
- av_free(af->buf);
+ av_freep(&af->buf);
}
av_free(af);
}