mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-08 10:19:00 +00:00
Fix use afer free in free_window_list().
bug report by Gerrit Meyerheim, patch by Serguey Parkhomovsky on bugs@ Thanks to both.
This commit is contained in:
@@ -100,8 +100,8 @@ void free_window_list(window_list *wl)
|
||||
window_item *q;
|
||||
while (*wl) {
|
||||
q = *wl;
|
||||
free(*wl);
|
||||
*wl = (*wl)->next;
|
||||
free(q);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user