title: Undefined behavior on deleting char array trought void *
body: <p>Is it true that the following yields undefined behavior:</p>
  
  <pre><code>void * something = NULL;
  char * buffer = new char[10];
  
  something = buffer;
  buffer = NULL;
  
  delete [] something; // undefined??
  </code></pre>
  
  <p>Do I first need to cast <code>something</code> to <code>char *</code> ?</p>