I have a small piece of code. I compiled it with -lmcheck as I am trying to debug a code where I have the same similar error.
-lmcheck
I get this error when I ru
Because ptr no longer points to the base of the memory you allocated.
ptr