cs-self-learning/Cprogramming/memory_leak.c
2023-05-26 08:45:03 +00:00

10 lines
No EOL
134 B
C

#include <stdlib.h>
#include <stdio.h>
int main() {
while(1) {
malloc(1024); // allocate 1024bytes
}
return 0;
}