summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/eviction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/eviction.c b/test/eviction.c
index 3a6f801..f7f09a3 100644
--- a/test/eviction.c
+++ b/test/eviction.c
@@ -38,10 +38,10 @@ main(int argc, const char **argv)
printf("\n");
print_counts_raw(counts);
- close(fd);
-
ret = ioctl(fd, KVM_CPC_DEINIT, &arg);
if (ret == -1) err(1, "KVM_CPC_DEINIT");
+ close(fd);
+
return arg;
}