Re: [PATCH 3/6] notes: don't leak memory in git_config_get_notes_strategy
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 30, 2016, 17:17 UTC
- Message-ID
- <xmqqmvpfubq8.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20160330011334.GC2237@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I don't think this is wrong, but would it perhaps be simpler to call > git_config_get_value() in the first place, which does not make a copy of > the string?
Yup, I agree.