tree-wide: use LIST_CLEAR()

This commit is contained in:
David Tardon
2023-08-17 09:48:17 +02:00
parent d327b7752f
commit 9aad490e53
11 changed files with 13 additions and 74 deletions
+1 -4
View File
@@ -36,10 +36,7 @@ struct PatternElement {
};
static PatternElement *pattern_element_free_all(PatternElement *e) {
PatternElement *p;
while ((p = LIST_POP(elements, e)))
free(p);
LIST_CLEAR(elements, e, free);
return NULL;
}