memory error I dont understand the meaning of this error

Hello,

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

*** glibc detected *** ./a.out: free(): invalid pointer: 0x00007fe5bd4faa28 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fe5bd21f9a8]
/lib/libc.so.6(cfree+0x76)[0x7fe5bd221ab6]
/usr/lib/libstdc++.so.6(_ZNSs6assignERKSs+0x8f)[0x7fe5bda3e8ef]
./a.out[0x402951]
./a.out[0x402b11]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fe5bd1ca1a6]
./a.out(__gxx_personality_v0+0x79)[0x4017a9]
======= Memory map: ========

It would be great if somebody could help me.

Hi,

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.