Port over part of change Ice6a7c28 that frees ashmem memory. Change-Id: I467617f3bc35a0e448fbf41207853e669aed657a