Memory leak fix from AOKP.

Change-Id: I53efada0434d16a7271323f32e01f2c76d668f54