Merge "fix corruption in Vector<> when malloc falied"