i was running a small c program:
#include int main() { char *p; p = (char *)malloc(10); free(p); free(p); free(p); printf(\"\\npointer is freed!!\
I would expect DEBUG builds of most compilers to be able to detect this type of a failure and report exactly what happened. So would MSVC do.
In RELEASE, it could be optimized to generate unpredictable behavior faster.