Update mem_helper.c