From: Junio C Hamano Date: Fri, 13 Jan 2023 19:57:51 GMT Subject: Re: [PATCH v3 13/19] builtin/merge.c: always free "struct strbuf msg" Message-ID: In-Reply-To: <71e7d424-b785-9f9e-8b09-955b56fa19b0@web.de> René Scharfe writes: > Am 10.01.23 um 06:43 schrieb Ævar Arnfjörð Bjarmason: >> Follow-up 465028e0e25 (merge: add missing strbuf_release(), >> 2021-10-07) and address the "msg" memory leak in this block. We could >> free "&msg" before the "goto done" here, but even better is to avoid >> allocating it in the first place. > > So contrary to the subject we don't need to free it anymore. ;-) I appreciate such careful reading.