From: Karthik Nayak Date: Fri, 24 May 2024 20:38:58 GMT Subject: Re: [PATCH 02/20] transport-helper: fix leaking helper name Message-ID: In-Reply-To: <05fbadbae2184479c87c37675dde7bd79b3e32ab.1716465556.git.ps@pks.im> Patrick Steinhardt writes: > When initializing the transport helper in `transport_get()`, we > allocate the name of the helper. We neither end up transferring > ownership of the name, nor do we free it. The associated memory thus > leaks. > > Fix this memory leak and mark now-passing tests as leak free. > So this is done by removing the `const` from the `name` field in `helper_data` so we can assign and free its memory. Looks good. [snip]