Add g_ prefix for global variable in memtest.c