Ubuntu – strace output not showing malloc and free system call in a multi threaded application
I am trying to simulate a memory leak problem with the following code and then investigate the system calls resulting in memory leak. include <iostream> #include <thread> #include <chrono> #include <mutex> #include <ctime> class SharedObject { public: std::string currentTime; SharedObject()…