fix: loop freeing parsing missing an element
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
void free_options(struct option_lst *options)
|
void free_options(struct option_lst *options)
|
||||||
{
|
{
|
||||||
struct option_lst *it = options;
|
struct option_lst *it = options;
|
||||||
while (it->next) {
|
while (it) {
|
||||||
struct option_lst *tmp = it;
|
struct option_lst *tmp = it;
|
||||||
it = it->next;
|
it = it->next;
|
||||||
free(tmp);
|
free(tmp);
|
||||||
|
Reference in New Issue
Block a user