[FFmpeg-cvslog] fraps: fix memleak
Michael Niedermayer
git at videolan.org
Wed Nov 9 20:11:50 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Nov 9 19:33:33 2011 +0100| [46082e6186343f6453c9fe06c3b8966778560b13] | committer: Michael Niedermayer
fraps: fix memleak
Found-by reimar
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=46082e6186343f6453c9fe06c3b8966778560b13
---
libavcodec/fraps.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index 0844fa7..ebcc101 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -114,8 +114,10 @@ static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
else if(Uoff) dst[i] += 0x80;
}
dst += stride;
- if(get_bits_left(&gb) < 0)
+ if(get_bits_left(&gb) < 0){
+ free_vlc(&vlc);
return -1;
+ }
}
free_vlc(&vlc);
return 0;
More information about the ffmpeg-cvslog
mailing list