Commit 424ed1a8 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/faxcompr: Fix memleak

Fixes CID1270816
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 956bd71e
...@@ -297,7 +297,7 @@ int ff_ccitt_unpack(AVCodecContext *avctx, const uint8_t *src, int srcsize, ...@@ -297,7 +297,7 @@ int ff_ccitt_unpack(AVCodecContext *avctx, const uint8_t *src, int srcsize,
ref[1] = 0; ref[1] = 0;
ref[2] = 0; ref[2] = 0;
if ((ret = init_get_bits8(&gb, src, srcsize)) < 0) if ((ret = init_get_bits8(&gb, src, srcsize)) < 0)
return ret; goto fail;
has_eol = show_bits(&gb, 12) == 1 || show_bits(&gb, 16) == 1; has_eol = show_bits(&gb, 12) == 1 || show_bits(&gb, 16) == 1;
for (j = 0; j < height; j++) { for (j = 0; j < height; j++) {
......
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