比如说有这样的一个函数: char * test () { ... char * c= (char*)malloc(....); return c; } 在主函数中: int main() { char * a = test(); } 那么这个a是不是要free(a)呢?