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
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 -
free(): invalid pointer: 0xbfffea84 ***
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.