Commit bb5e1482 authored by Michael Niedermayer's avatar Michael Niedermayer

libavcodec/tiffenc: Use av_freep() avoid leaving stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 98fbf8ef
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment