Hi,
I have a program which runs fine and has no leaks. But if I add this line...
map <long, NetworkComponen t> network;
... right before the main's() final return, it runs fine but Valgrind (I'm using KDevelop) tells me there is a memory leak. How can it be, if I haven't inserted anything in the map, and network is stored in the stack and thus needs not be deleted?
Thanks for the attention
I have a program which runs fine and has no leaks. But if I add this line...
map <long, NetworkComponen t> network;
... right before the main's() final return, it runs fine but Valgrind (I'm using KDevelop) tells me there is a memory leak. How can it be, if I haven't inserted anything in the map, and network is stored in the stack and thus needs not be deleted?
Thanks for the attention
Comment