内存泄漏
程序员文章站
2022-04-19 08:23:40
...
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main() {
while(1){
int *p = (int *)malloc(100000);
p=(int *)malloc(100000);
free(p);
Sleep(10);
}
return 0;
}