perf: Fix memory leak: counterwidth
authorAlexander Beregalov <a.beregalov@gmail.com>
Thu, 7 Jan 2010 16:40:47 +0000 (19:40 +0300)
committerIngo Molnar <mingo@elte.hu>
Wed, 13 Jan 2010 09:09:15 +0000 (10:09 +0100)
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>
tools/perf/util/values.c

index 1c15e39f99e3c90b4b6b974078685e45269491bc..cfa55d686e3b9689fd6bfce089fb9d7207e85ab9 100644 (file)
@@ -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,