Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-27 17:49:13 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-12-27 17:49:13 +0300
commit6d639ecf44722019566bd84d43e4f30322e64b31 (patch)
treef0411a8054034183b53665f6f7effe4fe75db115 /libavutil/audio_fifo.c
parent336bb3f706ea86239f2bb1cadff3a7c40f95d130 (diff)
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/audio_fifo.c')
-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);
}