summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-18 11:33:00 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-18 11:33:58 +0100
commitbb5e1482992ddcbdae5f4aee8e62fafbf37a239f (patch)
tree8089d8aa97f540f251a72f8dc0455ce32654154b /libavcodec
parent98fbf8ef6737befeec5bd634164b9b0ea17f9cfe (diff)
downloadffmpeg-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.c2
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;
OpenPOWER on IntegriCloud