fix: loop freeing parsing missing an element
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user