Re: [PATCH] strbuf: instate cleanup rule in case of non-memory errors
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 7, 2009, 21:19 UTC
- Message-ID
- <7vtz8a95m0.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <4963C1EA.504@lsrfire.ath.cx>
René Scharfe <rene.scharfe@lsrfire.ath.cx> writes:
> Make all strbuf functions that can fail free() their memory on error if > they have allocated it. They don't shrink buffers that have been grown, > though.
Thanks; applied.