Commit 46082e61 authored by Michael Niedermayer's avatar Michael Niedermayer

fraps: fix memleak

Found-by reimar
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8892d049
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment