G++ Multi-platform memory leak detection tool

后端 未结 6 572
不思量自难忘°
不思量自难忘° 2021-02-05 20:58

Does anyone know where I can find a memory memory leak detection tool for C++ which can be either run in a command line or as an Eclipse plug-in in Windows and Linux. I would l

6条回答
  •  一向
    一向 (楼主)
    2021-02-05 21:24

    While you mentioned that this isn't preferred the Boehm Garbage Collector can be used to detect memory leaks. Simply put, if the garbage collector is ever actually running then generally you have a memory leak. It's used this way by Mozilla to detect memory leaks in Firefox.

提交回复
热议问题