diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2010-01-07 17:40:47 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-01-13 10:09:15 +0100 |
commit | 8d9e503928638fc95317be42c416fb7907322aff (patch) | |
tree | 00e60439ed64142945438f0cc952fc640a4cab1a /tools | |
parent | perf probe: Support --line option to show probable source-code lines (diff) | |
download | linux-8d9e503928638fc95317be42c416fb7907322aff.tar.xz linux-8d9e503928638fc95317be42c416fb7907322aff.zip |
perf: Fix memory leak: counterwidth
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Cc: a.p.zijlstra@chello.nl
Cc: paulus@samba.org
LKML-Reference: <1262882447-23776-2-git-send-email-a.beregalov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r-- | 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 1c15e39f99e3..cfa55d686e3b 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, |