Description
Hello!
I had following malfunction with my GNL project.
The project was realised with help of linked lists.
Suppose that in main we open two files havinf fd1 and fd2.
Then we get a line from fd1 with help of our function get_next_line
.
Then we get another line from fd2.
As a last step we read fd1 till it ends.
I stored remain parts of each file in linked list. For to fd's my linked list had two elements.
The problem with my gnl was that when one file ends up, I freed up all the structure. Instead of that, I should had freed only the given list with fd1.
Moulinette doesn't check that obviously. And the checker does it neither.
But one of peers paid attention to that issue.
Could you take a look into that and make checker check that?
Namely, when one file finishes, is it still possible to read a line from the other file.
Regards,
Mansur /btrifle/