From patchwork Fri Jan 28 16:24:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Koskinen, Aaro (Nokia - FI/Espoo)" X-Patchwork-Id: 515351 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0SGLibY013007 for ; Fri, 28 Jan 2011 16:21:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753858Ab1A1QVn (ORCPT ); Fri, 28 Jan 2011 11:21:43 -0500 Received: from smtp.nokia.com ([147.243.128.26]:21780 "EHLO mgw-da02.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751393Ab1A1QVm (ORCPT ); Fri, 28 Jan 2011 11:21:42 -0500 Received: from nokia.com (localhost [127.0.0.1]) by mgw-da02.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id p0SGLc5e030945; Fri, 28 Jan 2011 18:21:39 +0200 Received: from localhost.localdomain ([corebot.research.nokia.com [172.21.34.37]]) by mgw-da02.nokia.com with RELAY id p0SGLR9w030793 ; Fri, 28 Jan 2011 18:21:29 +0200 From: Aaro Koskinen To: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Cc: Aaro Koskinen Subject: [PATCH] arm: mach-omap2: voltage: debugfs: fix memory leak Date: Fri, 28 Jan 2011 18:24:11 +0200 Message-Id: <1296231851-20632-1-git-send-email-aaro.koskinen@nokia.com> X-Mailer: git-send-email 1.5.6.5 X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 28 Jan 2011 16:21:44 +0000 (UTC) diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2/voltage.c index ed6079c..12be525 100644 --- a/arch/arm/mach-omap2/voltage.c +++ b/arch/arm/mach-omap2/voltage.c @@ -471,6 +471,7 @@ static void __init vdd_debugfs_init(struct omap_vdd_info *vdd) strcat(name, vdd->voltdm.name); vdd->debug_dir = debugfs_create_dir(name, voltage_dir); + kfree(name); if (IS_ERR(vdd->debug_dir)) { pr_warning("%s: Unable to create debugfs directory for" " vdd_%s\n", __func__, vdd->voltdm.name);