projects
/
libav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Just noticed there is a memory leak in h264.c with the usage of rbsp_buffer.
[libav.git]
/
libavcodec
/
h264.c
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
925fb68
..
14362d3
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-7807,6
+7807,7
@@
static int decode_end(AVCodecContext *avctx)
H264Context *h = avctx->priv_data;
MpegEncContext *s = &h->s;
+ av_freep(&h->rbsp_buffer);
free_tables(h); //FIXME cleanup init stuff perhaps
MPV_common_end(s);