Fix bunch of fd leaks in http-fetch
authorPetr Baudis <redacted>
Fri, 11 Nov 2005 23:55:16 +0000 (00:55 +0100)
committerJunio C Hamano <redacted>
Tue, 15 Nov 2005 08:34:50 +0000 (00:34 -0800)
commit313c4714c5ec1673805b952ba79d910a42e8937c
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 <redacted>.

Signed-off-by: Petr Baudis <redacted>
Signed-off-by: Junio C Hamano <redacted>
http-fetch.c
git clone https://git.99rst.org/PROJECT