Detecting memory leaks in C programs?

后端 未结 5 558
忘了有多久
忘了有多久 2021-01-30 05:33

If we would like to check for memory leaks in a C++ program, we can overload the new and delete operators to keep track of the memory that was allocate

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-30 06:22

    Here is how you can modify malloc, free hooks : Hooks for Malloc

提交回复
热议问题