Why am I getting this memory access error 'double free or corruption'?

前端 未结 2 611
故里飘歌
故里飘歌 2021-02-04 11:11

I am getting the following type of error. I know it has something to do with me improperly accessing memory, but I don\'t exactly how. Please help me see where I have gone wrong

2条回答
  •  梦毁少年i
    2021-02-04 12:01

    It looks like you are trying to free memory that has already been freed or was dereferenced.

    Link your program with efence or run it with valgrind.

    This will tell you where your pointer gets dereferenced.

提交回复
热议问题