diff options
author | vectronic <hello.vectronic@gmail.com> | 2019-09-16 11:44:27 +0100 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-09-23 10:06:08 +0800 |
commit | 598962cd3a68e30662cfbd5e053eef85d2ee3a8a (patch) | |
tree | 49f08b926cb2e8303ee508264e31e4710c63c805 | |
parent | 4ba45a95df1b3b38fe69e7e462d1c7c564ac395f (diff) | |
download | ffmpeg-598962cd3a68e30662cfbd5e053eef85d2ee3a8a.tar.gz |
avformat/dashdec: fix pointer being freed was not allocated
prevent attempt to call xmlFree if val was not allocated
fixes: 8135
Reviewed-by: Steven Liu <lq@onvideo.cn>
Signed-off-by: vectronic <hello.vectronic@gmail.com>
-rw-r--r-- | libavformat/dashdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 8c0a9b0102..738bfeaefb 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -1203,6 +1203,7 @@ static int parse_programinformation(AVFormatContext *s, xmlNodePtr node) } node = xmlNextElementSibling(node); xmlFree(val); + val = NULL; } return 0; } |