From 598962cd3a68e30662cfbd5e053eef85d2ee3a8a Mon Sep 17 00:00:00 2001 From: vectronic Date: Mon, 16 Sep 2019 11:44:27 +0100 Subject: [PATCH] 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 Signed-off-by: vectronic --- 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; }