]> git.sesse.net Git - ffmpeg/commitdiff
avformat/dashdec: fix pointer being freed was not allocated
authorvectronic <hello.vectronic@gmail.com>
Mon, 16 Sep 2019 10:44:27 +0000 (11:44 +0100)
committerSteven Liu <lq@chinaffmpeg.org>
Mon, 23 Sep 2019 02:06:08 +0000 (10:06 +0800)
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>
libavformat/dashdec.c

index 8c0a9b01026add1e4e5e8c6f685f52ea57940eca..738bfeaefbb53b84285ea674984b3823d997574e 100644 (file)
@@ -1203,6 +1203,7 @@ static int parse_programinformation(AVFormatContext *s, xmlNodePtr node)
         }
         node = xmlNextElementSibling(node);
         xmlFree(val);
+        val = NULL;
     }
     return 0;
 }