tentative de faire disparaitre les presque leaks de la liste chainee
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user