user field is updated before allocated memory is free. Change-Id: I120cb4abab1a010b38dddc8aedc710b77671ac58