title: Invalid pointer crash on delete, but different pointer
body: <p>My program crashes with an invalid pointer. When I run gdb with it, it tells me the address of the invalid pointer that caused the crash. The line it crashes on is a</p>
  
  <pre><code>delete some_pointer;
  </code></pre>
  
  <p>But when I print out the pointer right before deleting it, the address is not the same as the one gdb tells me is invalid. So is that some_pointer I'm deleting when it crashes not the pointer thats causing a problem? gdb says - </p>
  
  <pre><code>free(): invalid pointer: 0xbfffea84 ***
  </code></pre>
  
  <p>So why would it crash on a free with a different address every time? I just want to make sure that I'm thinking correctly here.</p>