void fun(void *p) { int *q = (int *)p; free(q); } int main() { int *p = (int *)malloc(sizeof(int)); fun((void*)p); }
被释放了
释放。