Segmentation Fault in xaccFreeSplit

Thomas Bushnell BSG tb at becket.net
Fri Jan 21 22:16:30 EST 2005


Derek Atkins <warlord at MIT.EDU> writes:

> And yes, this code has been there a long time, in order to detect a
> double-free.  

That's a bug then; you can't access freed memory, period.  

Indeed, it is fair game for an attempted read out of freed memory to
fault; it's been freed, you can't read it.  You have no right to
assume that malloc/free even keep pages mapped after a free.

Thomas


More information about the gnucash-devel mailing list