Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-18 13:20:39 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-02-18 13:38:00 +0300
commit424ed1a83e1f6b3e8dad249c39d68d771d3f8164 (patch)
tree180f8c8b3d8ed63c69aefc4238a51622aa905080 /libavcodec/faxcompr.c
parent956bd71eebe43cdf35330573be03f3c2658b888b (diff)
avcodec/faxcompr: Fix memleak
Fixes CID1270816 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/faxcompr.c')
-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++) {