Browse Source

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>
tags/n4.3
vectronic Steven Liu 6 years ago
parent
commit
598962cd3a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/dashdec.c

+ 1
- 0
libavformat/dashdec.c View File

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


Loading…
Cancel
Save