diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-27 15:49:13 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-27 15:49:13 +0100 |
commit | 6d639ecf44722019566bd84d43e4f30322e64b31 (patch) | |
tree | f0411a8054034183b53665f6f7effe4fe75db115 /libavutil | |
parent | 336bb3f706ea86239f2bb1cadff3a7c40f95d130 (diff) | |
download | ffmpeg-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.c | 2 |
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); } |