eal/arm: fix file descriptor leak when getting CPU features
Close the file descriptor after finish using it. Fixes: b94e5c94 ("eal/arm: add CPU flags for ARMv7") Fixes: 97523f82 ("eal/arm: add CPU flags for ARMv8") Signed-off-by: Jianbo Liu <jianbo.liu@linaro.org> Acked-by: Jan Viktorin <viktorin@rehivetech.com>
This commit is contained in:
parent
e65b5069fd
commit
a1ed637873
@ -148,6 +148,7 @@ rte_cpu_get_features(hwcap_registers_t out)
|
||||
out[REG_PLATFORM] = 0x0001;
|
||||
}
|
||||
}
|
||||
close(auxv_fd);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user