[FFmpeg-cvslog] libavcodec/libxavs: Use av_freep() avoid leaving stale pointers in memory

Michael Niedermayer git at videolan.org
Tue Nov 18 11:54:33 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 18 11:33:00 2014 +0100| [98fbf8ef6737befeec5bd634164b9b0ea17f9cfe] | committer: Michael Niedermayer

libavcodec/libxavs: Use av_freep() 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=98fbf8ef6737befeec5bd634164b9b0ea17f9cfe
---

 libavcodec/libxavs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libxavs.c b/libavcodec/libxavs.c
index 92dcece..ed86b61 100644
--- a/libavcodec/libxavs.c
+++ b/libavcodec/libxavs.c
@@ -201,7 +201,7 @@ static av_cold int XAVS_close(AVCodecContext *avctx)
     XavsContext *x4 = avctx->priv_data;
 
     av_freep(&avctx->extradata);
-    av_free(x4->sei);
+    av_freep(&x4->sei);
     av_freep(&x4->pts_buffer);
 
     if (x4->enc)



More information about the ffmpeg-cvslog mailing list