lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 13 Jan 2010 10:35:46 GMT
From:	tip-bot for Alexander Beregalov <a.beregalov@...il.com>
To:	linux-tip-commits@...r.kernel.org
Cc:	linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
	a.beregalov@...il.com, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:perf/core] perf: Fix memory leak: counterwidth

Commit-ID:  8d9e503928638fc95317be42c416fb7907322aff
Gitweb:     http://git.kernel.org/tip/8d9e503928638fc95317be42c416fb7907322aff
Author:     Alexander Beregalov <a.beregalov@...il.com>
AuthorDate: Thu, 7 Jan 2010 19:40:47 +0300
Committer:  Ingo Molnar <mingo@...e.hu>
CommitDate: Wed, 13 Jan 2010 10:09:15 +0100

perf: Fix memory leak: counterwidth

Signed-off-by: Alexander Beregalov <a.beregalov@...il.com>
Cc: a.p.zijlstra@...llo.nl
Cc: paulus@...ba.org
LKML-Reference: <1262882447-23776-2-git-send-email-a.beregalov@...il.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
 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,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ