Fix bunch of fd leaks in http-fetch
commit313c4714c5ec1673805b952ba79d910a42e8937c
authorPetr Baudis <pasky@suse.cz>
Fri, 11 Nov 2005 23:55:16 +0000 (12 00:55 +0100)
committerJunio C Hamano <junkio@cox.net>
Tue, 15 Nov 2005 08:34:50 +0000 (15 00:34 -0800)
treef0d0aef508382733cc10d316ff61d1dc444df108
parentbce8230d5d897a738cc004954df71f50a40295db
Fix bunch of fd leaks in http-fetch

The current http-fetch is rather careless about fd leakage, causing
problems while fetching large repositories. This patch does not reserve
exhaustiveness, but I covered everything I spotted. I also left some
safeguards in place in case I missed something, so that we get to know,
sooner or later.

Reported by Becky Bruce <becky.bruce@freescale.com>.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c