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>
This commit is contained in:
vectronic 2019-09-16 11:44:27 +01:00 committed by Steven Liu
parent 4ba45a95df
commit 598962cd3a

View File

@ -1203,6 +1203,7 @@ static int parse_programinformation(AVFormatContext *s, xmlNodePtr node)
}
node = xmlNextElementSibling(node);
xmlFree(val);
val = NULL;
}
return 0;
}