mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-01 03:03:58 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue