From: Karthik Nayak Date: Tue, 30 Jul 2024 09:14:00 GMT Subject: Re: [PATCH 02/23] builtin/log: fix leaking branch name when creating cover letters Message-ID: In-Reply-To: <4daae88877f2355d6a3960883e7b3f15cf738cb5.1721995576.git.ps@pks.im> Patrick Steinhardt writes: > When calling `make_cover_letter()` without a branch name, then we try to Nit: s/then// > derive the branch name by calling `find_branch_name()`. But while this > function returns an allocated string, we never free the result and thus > have a memory leak. Fix this. [snip]