fix compile warning: no newline at end of file for mem.c