From: H. Peter Anvin Date: Wed, 12 Oct 2005 03:18:45 GMT Subject: Re: [RFC] Cleaning up die() error messages Message-ID: <434C8095.4080201@zytor.com> In-Reply-To: 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