Re: [RFC PATCH] http: use xmalloc with cURL
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 12, 2019, 20:04 UTC
- Message-ID
- <xmqqd0ha9ml4.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20190812195537.GA14223@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I think it might be worth just eliminating the whole idea.
I kinda like the simplification ;-) An even thinner wrapper that calls malloc() and dies if it gets NULL, without any "try-to-free" logic.