Messages in this thread Patch in this message | | | From | Alexander Beregalov <> | Subject | [PATCH 2/2] perf: fix memory leak: counterwidth | Date | Thu, 7 Jan 2010 19:40:47 +0300 |
| |
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com> --- tools/perf/util/values.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tools/perf/util/values.c b/tools/perf/util/values.c index 1c15e39..cfa55d6 100644 --- a/tools/perf/util/values.c +++ b/tools/perf/util/values.c @@ -169,6 +169,7 @@ static void perf_read_values__display_pretty(FILE *fp, counterwidth[j], values->value[i][j]); fprintf(fp, "\n"); } + free(counterwidth); } static void perf_read_values__display_raw(FILE *fp, -- 1.6.6
| |