[FFmpeg-cvslog] avutil/audio_fifo: use av_freep() to avoid leaving stale pointers in memory
Michael Niedermayer
git at videolan.org
Sat Dec 27 15:59:21 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 27 15:49:13 2014 +0100| [6d639ecf44722019566bd84d43e4f30322e64b31] | committer: Michael Niedermayer
avutil/audio_fifo: use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6d639ecf44722019566bd84d43e4f30322e64b31
---
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 c3aadfd..574907a 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);
}
More information about the ffmpeg-cvslog
mailing list