Update memory-cap.c