diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-09 19:33:33 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-09 19:33:33 +0100 |
commit | 46082e6186343f6453c9fe06c3b8966778560b13 (patch) | |
tree | 8fd455f7269df91adec31d8ae55b103a4d4030f7 /libavcodec/fraps.c | |
parent | 8892d0492d925f2adb379d2ee3632534b75d020e (diff) | |
download | ffmpeg-46082e6186343f6453c9fe06c3b8966778560b13.tar.gz |
fraps: fix memleak
Found-by reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r-- | libavcodec/fraps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index 0844fa7939..ebcc1013e6 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; |