Why do I get a “munmap_chunk(): invalid pointer” error while doing free on a int *?

后端 未结 0 613
死守一世寂寞
死守一世寂寞 2020-12-24 07:01

so I am trying to insert a new element to both Node* arr and int* map. Thus I first copy the old pointers, then free them. This is my code:

struct Node* temp          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题