Skip to content
Commit 46862da1 authored by Ding Xiang's avatar Ding Xiang Committed by Will Deacon
Browse files

kselftest/arm64: fix a memleak in zt_regs_run()



If memcmp() does not return 0, "zeros" need to be freed to prevent memleak

Signed-off-by: default avatarDing Xiang <dingxiang@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20230815074915.245528-1-dingxiang@cmss.chinamobile.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 358b763e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment