Changed malloc call to ft_malloc. Removed some useless NULL check.