[FFmpeg-cvslog] avcodec/atrac3plusdec: use av_freep(), do not leave stale pointers in memory
Michael Niedermayer
git at videolan.org
Wed Oct 8 16:16:17 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 8 16:09:05 2014 +0200| [fa8c6c13505cdea7ca7df44ac5a801962ebba1d2] | committer: Michael Niedermayer
avcodec/atrac3plusdec: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fa8c6c13505cdea7ca7df44ac5a801962ebba1d2
---
libavcodec/atrac3plusdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/atrac3plusdec.c b/libavcodec/atrac3plusdec.c
index 3a6b3cf..3699580 100644
--- a/libavcodec/atrac3plusdec.c
+++ b/libavcodec/atrac3plusdec.c
@@ -67,7 +67,7 @@ typedef struct ATRAC3PContext {
static av_cold int atrac3p_decode_close(AVCodecContext *avctx)
{
- av_free(((ATRAC3PContext *)(avctx->priv_data))->ch_units);
+ av_freep(&((ATRAC3PContext *)(avctx->priv_data))->ch_units);
return 0;
}
More information about the ffmpeg-cvslog
mailing list