[PATCH 5/6] Fix file and memory resource leak on error exit in idlestat_load

2014-02-18 Thread Daniel Lezcano
From: Colin Ian King The error returns in idlestat_load fail to close an open file and free allocated memory on the heap. This patch addresses this. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(

[PATCH 5/6] Fix file and memory resource leak on error exit in idlestat_load

2014-02-18 Thread "Daniel Lezcano
From: Colin Ian King The error returns in idlestat_load fail to close an open file and free allocated memory on the heap. This patch addresses this. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(