trusted-keys: free memory bugfix
Add missing kfree(td) in tpm_seal() before the return, freeing td on error paths as well. Reported-by: NDan Carpenter <error27@gmail.com> Signed-off-by: NMimi Zohar <zohar@us.ibm.com> Acked-by: NDavid Safford <safford@watson.ibm.com> Acked-by: NDavid Howells <dhowells@redhat.com> Signed-off-by: NSerge Hallyn <serge@hallyn.com> Signed-off-by: NJames Morris <jmorris@namei.org>
Showing
想要评论请 注册 或 登录