Signed-off-by: Sanjay Singh Rawat <[email protected]>
---
idlestat.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/idlestat.c b/idlestat.c
index ab561c1..1266215 100644
--- a/idlestat.c
+++ b/idlestat.c
@@ -460,9 +460,14 @@ static void release_cstate_info(struct cpuidle_cstates
*cstates, int nrcpus)
struct cpuidle_cstate *c = &(cstates[cpu].cstate[i]);
if (c->name)
free(c->name);
+ if (c->data)
+ free(c->data);
}
}
+ if (cstates->wakeinfo.irqinfo)
+ free(cstates->wakeinfo.irqinfo);
+
/* free the cstates array */
free(cstates);
}
--
1.8.3.2
_______________________________________________
linaro-dev mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-dev