title: C++: is push_back(new Object()) a memory leak?
body: <p>Is the following C++ code a memory leak?</p>
  
  <pre><code>list.push_back(new String("hi"));
  </code></pre>
  
  <p>As I understand it, push_back from any std collection/container always makes a copy.  So if the new string is copied, nothing can ever delete the new'd string right?  since there is no reference to it after the push_back...</p>
  
  <p>Am I correct or wrong here?</p>
  
  <p>Thanks.</p>
  
  <p>Jbu</p>
  
  <p>edit: I think I am wrong, since new will return a pointer...we'll always have the pointer to be able to delete the new String</p>