diff --git a/src/parsing.c b/src/parsing.c index 2e0a753..5e431e6 100644 --- a/src/parsing.c +++ b/src/parsing.c @@ -11,7 +11,7 @@ void free_options(struct option_lst *options) { struct option_lst *it = options; - while (it->next) { + while (it) { struct option_lst *tmp = it; it = it->next; free(tmp);