How to create a memory leak in C++?

前端 未结 10 1300
没有蜡笔的小新
没有蜡笔的小新 2020-12-30 00:35

I was just wondering how you could create a system memory leak using C++. I have done some googling on this but not much came up, I am aware that it is not really feasible t

10条回答
  •  离开以前
    2020-12-30 01:15

    Just write an application which allocates "a lot of data" and then blocks until it is killed. Just run this program and leave it running.

提交回复
热议问题