Update memoryManagement.c