no more leaks but printf too long

This commit is contained in:
hugodu69
2020-02-27 00:00:11 +01:00
parent 319204ecc5
commit c82a18587a
5 changed files with 21 additions and 13 deletions

4
main.c
View File

@@ -68,9 +68,13 @@ char *ft_compare(int fd1, int fd2, int *error)
ret2 = get_next_line(fd2, &line);
if (ft_strcmp(tmp, line) != 0)
{
free(line);
free(tmp);
(*error)++;
return ("\033[91mHO HO..\033[0m");
}
free(line);
free(tmp);
}
if (ret1 != ret2)
{