[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YcGRPdqkX94hCGG5@iki.fi>
Date: Tue, 21 Dec 2021 10:33:01 +0200
From: Jarkko Sakkinen <jarkko@...nel.org>
To: Jianglei Nie <niejianglei2021@....com>
Cc: jejb@...ux.ibm.com, zohar@...ux.ibm.com, dhowells@...hat.com,
jmorris@...ei.org, serge@...lyn.com,
linux-integrity@...r.kernel.org, keyrings@...r.kernel.org,
linux-security-module@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] security:trusted_tpm2: Fix memory leak in
tpm2_key_encode()
On Sun, Dec 12, 2021 at 09:54:03PM +0800, Jianglei Nie wrote:
> Line 36 (#1) allocates a memory chunk for scratch by kmalloc(), but
> it is never freed through the function, which will lead to a memory
> leak.
>
through the function => in the implementation
Also, "line 36" is a relative to something, right? What is it?
/Jarkko
Powered by blists - more mailing lists