get_next_line with gmalloc