Commit 598962cd authored by vectronic's avatar vectronic Committed by Steven Liu

avformat/dashdec: fix pointer being freed was not allocated

prevent attempt to call xmlFree if val was not allocated
fixes: 8135
Reviewed-by: 's avatarSteven Liu <lq@onvideo.cn>
Signed-off-by: 's avatarvectronic <hello.vectronic@gmail.com>
parent 4ba45a95
......@@ -1203,6 +1203,7 @@ static int parse_programinformation(AVFormatContext *s, xmlNodePtr node)
}
node = xmlNextElementSibling(node);
xmlFree(val);
val = NULL;
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment