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:
910247f
)
asfdec: prevent possible memory leak in the asf_read_metadata_obj
author
Alexandra Hájková
<alexandra.khirnova@gmail.com>
Thu, 2 Jul 2015 10:26:19 +0000
(12:26 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Thu, 2 Jul 2015 23:50:09 +0000
(
01:50
+0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/asfdec.c
patch
|
blob
|
history
diff --git
a/libavformat/asfdec.c
b/libavformat/asfdec.c
index
c12d8c7
..
f2dd489
100644
(file)
--- a/
libavformat/asfdec.c
+++ b/
libavformat/asfdec.c
@@
-572,7
+572,8
@@
static int asf_read_metadata_obj(AVFormatContext *s, const GUIDParseTable *g)
if ((ret = process_metadata(s, name, name_len, val_len, type,
&asf->asf_sd[st_num].asf_met)) < 0)
break;
- }
+ } else
+ av_freep(&name);
}
}