small patch for malloc2