Update memory.c

Change-Id: I3e27c215aaaf8c9d7095dca495db0e08905a97a1
Signed-off-by: Blake Leeper <deatheatergrim@gmail.com>