無限をメモリを喰い続けるコードってどうなんですか?

#include<stdio.h>

int main(void){
int *mem;
while(1){
malloc(10000);
}

return 0;
}

だと、だめでした