diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-18 11:20:39 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-18 11:38:00 +0100 |
commit | 424ed1a83e1f6b3e8dad249c39d68d771d3f8164 (patch) | |
tree | 180f8c8b3d8ed63c69aefc4238a51622aa905080 | |
parent | 956bd71eebe43cdf35330573be03f3c2658b888b (diff) | |
download | ffmpeg-424ed1a83e1f6b3e8dad249c39d68d771d3f8164.tar.gz |
avcodec/faxcompr: Fix memleak
Fixes CID1270816
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/faxcompr.c | 2 |
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++) { |