xfree86: parser: fix possible use-after-free xf86freeOutputClassList()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
9b17febf75
commit
634700301c
|
@ -57,11 +57,11 @@ xf86freeOutputClassList(XF86ConfOutputClassPtr ptr)
|
|||
TestFree(ptr->modulepath);
|
||||
|
||||
xorg_list_for_each_entry_safe(group, next, &ptr->match_driver, entry) {
|
||||
xorg_list_del(&group->entry);
|
||||
for (list = group->values; *list; list++) {
|
||||
free(*list);
|
||||
*list = NULL;
|
||||
}
|
||||
xorg_list_del(&group->entry);
|
||||
free(group);
|
||||
group = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue