title: Can memory be leaked when using vector of pointer in c++?
body: <p>I tried this:</p>
  
  <pre><code>....
  vector&lt;players*&gt; player;
  for (int i = 0; i&lt;10; i++)
  {
      player.push_back(new players());
  }
  ...
  </code></pre>
  
  <p>And I wonder if I need to free memory for the vector? If so, how?</p>