Re: [PATCH v3 13/19] builtin/merge.c: always free "struct strbuf msg"
René Scharfe <l.s.r@web.de> writes:
Show 7 quoted lines
> 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.