[FFmpeg-cvslog] avcodec/faxcompr: Fix memleak
Michael Niedermayer
git at videolan.org
Wed Feb 18 11:44:13 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb 18 11:20:39 2015 +0100| [424ed1a83e1f6b3e8dad249c39d68d771d3f8164] | committer: Michael Niedermayer
avcodec/faxcompr: Fix memleak
Fixes CID1270816
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=424ed1a83e1f6b3e8dad249c39d68d771d3f8164
---
libavcodec/faxcompr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c
index 44d2721..b65f2e2 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++) {
More information about the ffmpeg-cvslog
mailing list