Update slug_mem.c