Skip to content
Commit 3084a4ec authored by Ding Xiang's avatar Ding Xiang Committed by Shuah Khan
Browse files

selftests: vm: Fix resource leak when return error



When return on an error path, file handle need to be closed
to prevent resource leak

Signed-off-by: default avatarDing Xiang <dingxiang@cmss.chinamobile.com>
Reviewed-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 12a29115
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