lib: malloc: Flush the cache after allocating on heap

Flush the heap memory to make sure the caches are clean. If there is some
unwanted data in the cache it would get written to main memory when peripheral
drivers invalidate the cache after updating the memory.

Change-Id: Id695b9fb62cfa8dd3db61589565b23f5ace5ec29
1 file changed