Re: [PATCH] Fix handle leak in write_tree
- From
Junio C Hamano <junkio@cox.net>
- Date
- Apr 24, 2007, 09:33 UTC
- Message-ID
- <7vps5u86bn.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <81b0412b0704240230x3a5b473k5da3d45d9c997c3b@mail.gmail.com>
"Alex Riesen" <raa.lkml@gmail.com> writes:
> ... Isn't such kind of resource control _generally_ nicer to implement > in the top levels of a program?
In theory perhaps, but my understanding of our use of atexit() is to clean them up in situations beyond the control of the top levels of a program, most notably upon exit on signal.