tools lib traceevent: Set int_array fields to NULL if freeing from error