free todos after quit
This commit is contained in:
10
main.c
10
main.c
@@ -163,11 +163,11 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
} while (cmd != QUIT);
|
} while (cmd != QUIT);
|
||||||
|
|
||||||
|
for (int i = 0; i < arrlen(todos); i++) {
|
||||||
|
todo_free_item(&todos[i]);
|
||||||
|
}
|
||||||
|
|
||||||
arrfree(todos);
|
arrfree(todos);
|
||||||
|
|
||||||
/* for (int i = 0; i < list_length(&todos); i++) { */
|
return 0;
|
||||||
/* todo_free_item(list_get(&todos, i)); */
|
|
||||||
/* } */
|
|
||||||
/* list_free(&todos); */
|
|
||||||
/* free(todos); */
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user