[FFmpeg-cvslog] avformat/dashdec: fix pointer being freed was not allocated
vectronic
git at videolan.org
Mon Sep 23 06:05:04 EEST 2019
ffmpeg | branch: master | vectronic <hello.vectronic at gmail.com> | Mon Sep 16 11:44:27 2019 +0100| [598962cd3a68e30662cfbd5e053eef85d2ee3a8a] | committer: Steven Liu
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 at onvideo.cn>
Signed-off-by: vectronic <hello.vectronic at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=598962cd3a68e30662cfbd5e053eef85d2ee3a8a
---
libavformat/dashdec.c | 1 +
1 file changed, 1 insertion(+)
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;
}
More information about the ffmpeg-cvslog
mailing list