From: Alexander Beregalov Date: Thu, 7 Jan 2010 16:40:47 +0000 (+0300) Subject: perf: Fix memory leak: counterwidth X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d9e503928638fc95317be42c416fb7907322aff;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git perf: Fix memory leak: counterwidth Signed-off-by: Alexander Beregalov 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 --- 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,