Open stefanhendriks opened 3 years ago
I can recommend address sanitizer. It's the go-to tool for detection of memory probelms nowadays. We would need to get d2tm to compile with clang, so we may need to get rid of the binary dependencies first. Also, I would propose to introduce smart pointers and perhaps put some objects on the stack instead of new-ing them first, before scanning for leaks.
Use http://wyw.dcweb.cn/leakage.htm ?