Skip to content
Commit ccf11dba authored by Dinghao Liu's avatar Dinghao Liu Committed by Mimi Zohar
Browse files

evm: Fix memleak in init_desc



tmp_tfm is allocated, but not freed on subsequent kmalloc failure, which
leads to a memory leak.  Free tmp_tfm.

Fixes: d46eb369 ("evm: crypto hash replaced by shash")
Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
[zohar@linux.ibm.com: formatted/reworded patch description]
Signed-off-by: default avatarMimi Zohar <zohar@linux.ibm.com>
parent 7c53f6b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment