title: std::vector - how to free the memory of char* elements in a vector?
body: <p>Consider the following C++ codes :</p>
  
  <pre><code>using namespace std;
  vector&lt;char*&gt; aCharPointerRow;
  aCharPointerRow.push_back("String_11");
  aCharPointerRow.push_back("String_12");
  aCharPointerRow.push_back("String_13");
  for (int i=0; i&lt;aCharPointerRow.size(); i++)  {
     cout &lt;&lt; aCharPointerRow[i] &lt;&lt; ",";
  }
  aCharPointerRow.clear();
  </code></pre>
  
  <p>After the <code>aCharPointerRow.clear();</code> line, the character pointer elements in <code>aCharPointerRow</code> should all be removed.</p>
  
  <p>Is there a memory leak in the above C++ code ? Do I need to explicitly free the memory allocated to the char* strings ? If yes, how ?</p>
  
  <p>Thanks for any suggestion.</p>