When can a memory leak occur?

前端 未结 8 2090
野性不改
野性不改 2021-02-08 06:52

I don\'t know what to think here...

We have a component that runs as a service. It runs perfectly well on my local machine, but on some other machine (on both machine RA

8条回答
  •  [愿得一人]
    2021-02-08 07:38

    By way of example, Memory leaks can occur when you use the new operator in c++ and forget to use the delete operator.

    Or, in other words, when you allocate a block of memory and you forget to deallocate it.

提交回复
热议问题