title: Issue with freeing an object
body: <p>I'm currently attempting to learn the C side of C++.</p>
  
  <p>I attempt to <code>malloc</code> a chunk of memory for a char array of <code>256</code> and then I assigned it a <code>char* "Hello World!"</code> but when I come to free the object I get an error.</p>
  
  <p>Can anyone please explain to me the error.</p>
  
  <pre><code>#include &lt;exception&gt;
  #include &lt;stdexcept&gt;
  #include &lt;iostream&gt;
  
  int main()
  {
      void* charVoidPointer = malloc( sizeof(char) * 256 ) ;
      charVoidPointer = "Hello World";
  
      std::cout &lt;&lt; (char *)charVoidPointer;
      free (charVoidPointer);
  }
  </code></pre>