aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-09 19:33:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-09 19:33:33 +0100
commit46082e6186343f6453c9fe06c3b8966778560b13 (patch)
tree8fd455f7269df91adec31d8ae55b103a4d4030f7
parent8892d0492d925f2adb379d2ee3632534b75d020e (diff)
downloadffmpeg-46082e6186343f6453c9fe06c3b8966778560b13.tar.gz
fraps: fix memleak
Found-by reimar Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/fraps.c4
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;