summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-18 11:20:39 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-18 11:38:00 +0100
commit424ed1a83e1f6b3e8dad249c39d68d771d3f8164 (patch)
tree180f8c8b3d8ed63c69aefc4238a51622aa905080
parent956bd71eebe43cdf35330573be03f3c2658b888b (diff)
avcodec/faxcompr: Fix memleak
Fixes CID1270816 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/faxcompr.c2
1 files changed, 1 insertions, 1 deletions
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++) {