Signed-off-by: Sanjay Singh Rawat sanjay.rawat@linaro.org --- 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); }
On Thu, Oct 9, 2014 at 2:36 PM, Sanjay Singh Rawat sanjay.rawat@linaro.org wrote:
Signed-off-by: Sanjay Singh Rawat sanjay.rawat@linaro.org
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
In case I didn't send email last week:
Applied, thanks.
Tuukka