aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--idlestat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/idlestat.c b/idlestat.c
index 41ed3ab..739f6dc 100644
--- a/idlestat.c
+++ b/idlestat.c
@@ -221,6 +221,7 @@ static struct cpuidle_cstate *inter(struct cpuidle_cstate *c1,
(result->nrdata + 1));
if (!tmp) {
free(data);
+ free(result);
return NULL;
}
data = tmp;