0

I'm using an Ubuntu 14.04 image with VmWare,

I'm writing a program in C++ & whenever I check the memory with Valgrind,
I get a message that I have 1 alloc, with 0 free.
The thing is, that I noticed that it happens when my main is empty.

enter image description here

Now the interesting thing is, when I try it on a different version of Ubuntu (12), there are no allocs whatsoever.

Tango_Chaser
  • 319
  • 1
  • 3
  • 13

1 Answers1

1

As long as I know iostream has some global stuff which is initialized once you include this library. Also it is a known issue that STLs don't release their memory immediately.

Check this link about mem leakage on STL with valgrind.

Also this link from SO.

Community
  • 1
  • 1
Alex Lop.
  • 6,810
  • 1
  • 26
  • 45