in add ticket, malloc data right at end