[FFmpeg-cvslog] libavcodec/tiffenc: 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| [bb5e1482992ddcbdae5f4aee8e62fafbf37a239f] | committer: Michael Niedermayer

libavcodec/tiffenc: 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=bb5e1482992ddcbdae5f4aee8e62fafbf37a239f
---

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

diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index 38ff780..5f3324b 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -420,7 +420,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
         }
     }
     if (s->compr == TIFF_LZW)
-        av_free(s->lzws);
+        av_freep(&s->lzws);
     }
 
     s->num_entries = 0;



More information about the ffmpeg-cvslog mailing list