title: Does realloc deallocate before trying to allocate new memory?
body: <p>I'm having trouble with my exercise here - I want to know about the realloc function a bit more - </p>
  
  <p>If we send a pointer to the realloc, and it fails to allocate memory [returns null] does the memory that used to be allocated, now deallocated? although we failed?</p>
  
  <p><code>ePointer = (Element*)realloc(stack-&gt;content, (sizeof(Element) * capacityOfStack(stack) * 2));</code></p>
  
  <p>when  <code>stack-&gt;content</code> being the pointer ofcourse, if we failed now have  <code>ePointer</code> as  <code>NULL</code>, then  <code>stack-&gt;content</code> is no longer allocated?</p>
  
  <p>Thanks alot!! </p>