diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-18 11:33:00 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-18 11:33:58 +0100 |
commit | bb5e1482992ddcbdae5f4aee8e62fafbf37a239f (patch) | |
tree | 8089d8aa97f540f251a72f8dc0455ce32654154b /libavcodec | |
parent | 98fbf8ef6737befeec5bd634164b9b0ea17f9cfe (diff) | |
download | ffmpeg-streaming-bb5e1482992ddcbdae5f4aee8e62fafbf37a239f.zip ffmpeg-streaming-bb5e1482992ddcbdae5f4aee8e62fafbf37a239f.tar.gz |
libavcodec/tiffenc: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/tiffenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |