memory error I dont understand the meaning of this error


I get an error which I’m not sure what it means.

*** glibc detected *** ./a.out: free(): invalid pointer: 0x00007fe5bd4faa28 ***
======= Backtrace: =========
======= Memory map: ========

It would be great if somebody could help me.


It means exactly what it says.

You are trying to free memory with an invalid pointer.

Could you please post the code where you are freeing memory as well as the allocation.