memory leak unit test c++

后端 未结 6 1255
天涯浪人
天涯浪人 2021-01-05 18:15

I have just resolved a memory leak in my application and now I want to write a unit test to ensure that this does not happen again.

I\'m look for a way to detect th

6条回答
  •  情深已故
    2021-01-05 18:31

    I really like ValGrind for this sort of thing. These tools already exist; you don't need to write your own unit tests to detect memory leaks.

提交回复
热议问题