avcodec/tiff: Clear deinvert_buf_size on deallocation
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Jun 2017 22:25:09 +0000 (00:25 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Jun 2017 22:25:09 +0000 (00:25 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/tiff.c

index b96caeb..69e8d16 100644 (file)
@@ -1411,6 +1411,7 @@ static av_cold int tiff_end(AVCodecContext *avctx)
 
     ff_lzw_decode_close(&s->lzw);
     av_freep(&s->deinvert_buf);
+    s->deinvert_buf_size = 0;
     av_freep(&s->fax_buffer);
     s->fax_buffer_size = 0;
     return 0;