summaryrefslogtreecommitdiffstats
path: root/src/hardware/lscpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardware/lscpu.c')
-rw-r--r--src/hardware/lscpu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/hardware/lscpu.c b/src/hardware/lscpu.c
index d4546cb..3a2a420 100644
--- a/src/hardware/lscpu.c
+++ b/src/hardware/lscpu.c
@@ -150,9 +150,7 @@ done:
void lscpu_free_processor(LscpuProcessor *cpus)
{
if (cpus) {
- if (cpus->stepping) {
- free(cpus->stepping);
- }
+ free(cpus->stepping);
cpus->stepping = NULL;
}