test patch for arraylist invalid free