From: Junio C Hamano Date: Wed, 04 Sep 2024 22:09:04 GMT Subject: Re: [PATCH 11/22] gpg-interface: fix misdesigned signing key interfaces Message-ID: In-Reply-To: Patrick Steinhardt writes: > The interfaces to retrieve signing keys and their IDs are misdesigned as > they return string constants even though they indeed allocate memory, > which leads to memory leaks. Refactor the code to instead always return > allocated strings and let the callers free them accordingly. Makes sense.