Subject: Re: [RFC] Cleaning up die() error messages

From: "H. Peter Anvin" <[email-masked]>
Date: Tue, 11 Oct 2005 20:18:45 -0700

Matthias Urlichs wrote:
> 
> I thought about doing something like that, but ...
>>However, a much bigger problem is cleanup.
> 
> ... exactly.
> 

I thought about this, and probably the sanest way is to wrap malloc() 
with something that creates a linked list of allocations.  If we abort, 
we can unwind the linked list and free all allocations.

	-hpa