mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexander Beregalov <a.beregalov@gmail.com>
To: a.p.zijlstra@chello.nl, paulus@samba.org, mingo@elte.hu
Cc: linux-kernel@vger.kernel.org,
	Alexander Beregalov <a.beregalov@gmail.com>
Subject: [PATCH 2/2] perf: fix memory leak: counterwidth
Date: Thu,  7 Jan 2010 19:40:47 +0300	[thread overview]
Message-ID: <1262882447-23776-2-git-send-email-a.beregalov@gmail.com> (raw)
In-Reply-To: <1262882447-23776-1-git-send-email-a.beregalov@gmail.com>

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


  reply	other threads:[~2010-01-07 16:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-07 16:40 [PATCH 1/2] perf: add close()/closedir() calls when needed Alexander Beregalov
2010-01-07 16:40 ` Alexander Beregalov [this message]
2010-01-13 10:35   ` [tip:perf/core] perf: Fix memory leak: counterwidth tip-bot for Alexander Beregalov
2010-01-07 21:29 ` [PATCH 1/2] perf: add close()/closedir() calls when needed Paul Mackerras
2010-01-07 22:44   ` Alexander Beregalov
2010-01-07 23:54     ` H. Peter Anvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1262882447-23776-2-git-send-email-a.beregalov@gmail.com \
    --to=a.beregalov@gmail.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome