add some malloc() and free() and calloc() and realloc() function