OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dec9800
)
matroska_parse_frame: fix memleak
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 19 Mar 2013 13:07:39 +0000
(14:07 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 19 Mar 2013 13:33:47 +0000
(14:33 +0100)
Fixes CID991856
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/matroskadec.c
patch
|
blob
|
history
diff --git
a/libavformat/matroskadec.c
b/libavformat/matroskadec.c
index
26b2186
..
115c926
100644
(file)
--- a/
libavformat/matroskadec.c
+++ b/
libavformat/matroskadec.c
@@
-2140,6
+2140,8
@@
static int matroska_parse_frame(MatroskaDemuxContext *matroska,
AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL,
additional_size + 8);
if(side_data == NULL) {
+ av_free_packet(pkt);
+ av_free(pkt);
return AVERROR(ENOMEM);
}
AV_WB64(side_data, additional_id);