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

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.

Leave a Comment