mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-15 20:01:42 +00:00
fraps: fix memleak
Found-by reimar Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8892d0492d
commit
46082e6186
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user