CMD Simulator

Pointer Error - Use-After-Free

Free a block, then write to it. MemC detects and explains the use-after-free error.

Try an example:
Your C code (must have main())
Controls

No memory to show yet

Click Run or Step to execute your code. The diagram will show where variables live: Stack (local vars), Heap (malloc blocks), and pointers between them.

Output (printf)

No output yet. Use printf("text") or printf("x = %d", x) to print.