[PATCH 2/6] Free memory on realloc failure.

2014-02-18 Thread Daniel Lezcano
From: Colin Ian King Fix a common coding error where realloc fails and the original allocated data is not free'd. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/idlestat.c b/id

[PATCH 2/6] Free memory on realloc failure.

2014-02-18 Thread "Daniel Lezcano
From: Colin Ian King Fix a common coding error where realloc fails and the original allocated data is not free'd. Signed-off-by: Colin Ian King Signed-off-by: Daniel Lezcano --- idlestat.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/idlestat.c b/id