From 424ed1a83e1f6b3e8dad249c39d68d771d3f8164 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 18 Feb 2015 11:20:39 +0100 Subject: [PATCH] avcodec/faxcompr: Fix memleak Fixes CID1270816 Signed-off-by: Michael Niedermayer --- libavcodec/faxcompr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c index 44d27219ff..b65f2e24e1 100644 --- a/libavcodec/faxcompr.c +++ b/libavcodec/faxcompr.c @@ -297,7 +297,7 @@ int ff_ccitt_unpack(AVCodecContext *avctx, const uint8_t *src, int srcsize, ref[1] = 0; ref[2] = 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; for (j = 0; j < height; j++) {