S
Sergey Tursanov
Hello all !
When I use code below and check my program with various memory
leak detection tools I get message about memory leaks in stl_alloc.h.
#include <string>
int main()
{
std::string s = ""; // that string of code causes memory leaks
return 0;
}
I use gcc 2.95.2 in Linux Debian 2.2r5. I try other STL (from SGI) -- memory
leak was in the same place. I use various memory debugging tols (e.g.
ccmalloc,
mtrace) -- all of them showed memory leaks.
Can anybody ask me what it means and why it happens ?
When I use code below and check my program with various memory
leak detection tools I get message about memory leaks in stl_alloc.h.
#include <string>
int main()
{
std::string s = ""; // that string of code causes memory leaks
return 0;
}
I use gcc 2.95.2 in Linux Debian 2.2r5. I try other STL (from SGI) -- memory
leak was in the same place. I use various memory debugging tols (e.g.
ccmalloc,
mtrace) -- all of them showed memory leaks.
Can anybody ask me what it means and why it happens ?