tentative de faire disparaitre les presque leaks de la liste chainee

This commit is contained in:
hugodu69
2019-12-15 03:44:44 +01:00
parent 3ce1c65b03
commit e50e68fb0f
2 changed files with 433 additions and 0 deletions

View File

@@ -137,5 +137,11 @@ int get_next_line(const int fd, char **line)
return (-1);
if (*(lst->string) && ++ret == 1)
(lst->string)[0] = '\0';
// free(lst);
// lst = lst->next;
// while (lst->next->lfd != fd)
// lst = lst->next;
// lst->next = lst->next->next;
// free(lst->next);
return (ret);
}