From 6d639ecf44722019566bd84d43e4f30322e64b31 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 27 Dec 2014 15:49:13 +0100 Subject: [PATCH] avutil/audio_fifo: use av_freep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libavutil/audio_fifo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }