From 17963a6ad7e41312312b32a4ce590abb9805f799 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 19 Sep 2020 01:04:32 +0200 Subject: [PATCH] avformat/dashdec: Don't overwrite and leak old initialization fragments Reviewed-by: Steven Liu Signed-off-by: Andreas Rheinhardt --- libavformat/dashdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index d84da16dbd..3f51e079cf 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -614,6 +614,7 @@ static int parse_manifest_segmenturlnode(AVFormatContext *s, struct representati initialization_val = xmlGetProp(fragmenturl_node, "sourceURL"); range_val = xmlGetProp(fragmenturl_node, "range"); if (initialization_val || range_val) { + free_fragment(&rep->init_section); rep->init_section = get_Fragment(range_val); if (!rep->init_section) { xmlFree(initialization_val);