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

View File

@@ -91,7 +91,11 @@ int ft_printf(char *string, ...)
if (!(print = ft_flag_transform(s, print, type)))
return (-1);
length += ft_put_word(print);
free(print);
}
free(s);
free(type);
}
free(s);
return (length);
}