Note: This may sound dumb. I have an application which uses raw pointers and there are lots of memory leaks in the application.
Now my question is how easy would it be to replace the existing raw pointers with the smart pointers. And would just replacing them help is reducing memory leaks caused by not freeing dynamically allocated memory.
To explain a little further, This application is a legacy one and there are very straightforward memory leaks where memory will be allocated and wont be released in same function itself.
I have done an memory analysis using DevPartner and found many areas. Is Valgrind better than Devpartner.
See Question&Answers more detail:os