eal/ppc: fix file descriptor leak when getting CPU features
Close the file descriptor after finish using it. Fixes: 9ae15538 ("eal/ppc: cpu flag checks for IBM Power") Signed-off-by: Jianbo Liu <jianbo.liu@linaro.org> Acked-by: Jan Viktorin <viktorin@rehivetech.com>
This commit is contained in:
parent
a1ed637873
commit
545f16daf6
@ -116,6 +116,7 @@ rte_cpu_get_features(hwcap_registers_t out)
|
||||
else if (auxv.a_type == AT_HWCAP2)
|
||||
out[REG_HWCAP2] = auxv.a_un.a_val;
|
||||
}
|
||||
close(auxv_fd);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user