David Brainlittle David Brainlittle - 1 year ago 80
C++ Question

Is there a way to create super fierce memory leaks?

I know that a common way to render memory leak is to assign a specific piece of memory address for a variable by new without releasing it. But is there a way to create epic and fierce memory leak that can very quickly force the computer to shutdown?

dd2 dd2
Answer Source

This takes a couple of seconds on my laptop.

int main(){
        int *a=new int[1000];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download