projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b1a3ab
)
Fix CID 1491264: use after free.
author
wwp
<subscript@free.fr>
Sun, 26 Sep 2021 14:55:45 +0000
(16:55 +0200)
committer
wwp
<subscript@free.fr>
Sun, 26 Sep 2021 14:55:45 +0000
(16:55 +0200)
src/toolbar.c
patch
|
blob
|
history
diff --git
a/src/toolbar.c
b/src/toolbar.c
index d7f1b41037c844f723e66ce4d24237f9c66e5f08..4de56a8c4279def8dd3dfc0d126780bd749fd75c 100644
(file)
--- a/
src/toolbar.c
+++ b/
src/toolbar.c
@@
-2857,8
+2857,8
@@
do { \
while (entry_list != NULL) {
Entry *e = (Entry*) entry_list->data;
- g_free(e);
entry_list = g_slist_remove(entry_list, e);
+ g_free(e);
}
/* match any bit flags */
@@
-2879,8
+2879,8
@@
do { \
while (entry_list != NULL) {
Entry *e = (Entry*) entry_list->data;
- g_free(e);
entry_list = g_slist_remove(entry_list, e);
+ g_free(e);
}
g_slist_free(entry_list);