[PATCH] security:trusted_tpm2: Fix memory leak in tpm2_key_encode()

Jarkko Sakkinen jarkko at kernel.org
Tue Dec 21 08:33:01 UTC 2021


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



More information about the Linux-security-module-archive mailing list