I just wrote a code in C++ which does some string manipulation, but when I ran valgrind over, it shows some possible memory leaks. Debugging the code to granular level I wrote a
#include using namespace std; int main() { { std::string myname("Is there any leaks"); } exit(0); }