title: C++ memory leaks by static variable
body: <p>Visual Studio 2012 tells me that the following program has memory leaks. Is this correct and if so how can I avoid memory leaks when using (for example) static vectors?</p>
  
  <pre><code>#include &lt;crtdbg.h&gt;
  #include &lt;vector&gt;
  
  struct A {
    static std::vector&lt;int&gt; a;
  };
  std::vector&lt;int&gt; A::a;
  
  int main()
  {
    _CrtDumpMemoryLeaks();
      return 0;
  }
  </code></pre>