Leak Demo - malloc without free
Allocate memory but never free it. MemC will warn about the memory leak at program end.
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.