Skip to content

Commit

Permalink
perf: Fix memory leak: counterwidth
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Beregalov authored and Ingo Molnar committed Jan 13, 2010
1 parent 631c9de commit 8d9e503
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/perf/util/values.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8d9e503

Please sign in to comment.