From patchwork Mon Feb 1 17:36:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ameya Palande X-Patchwork-Id: 76125 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o11HbEbI009284 for ; Mon, 1 Feb 2010 17:37:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752145Ab0BARhN (ORCPT ); Mon, 1 Feb 2010 12:37:13 -0500 Received: from smtp.nokia.com ([192.100.105.134]:52759 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751054Ab0BARhN (ORCPT ); Mon, 1 Feb 2010 12:37:13 -0500 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o11HaPP4022693; Mon, 1 Feb 2010 11:37:08 -0600 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 1 Feb 2010 19:36:57 +0200 Received: from mgw-da01.ext.nokia.com ([147.243.128.24]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 1 Feb 2010 19:36:56 +0200 Received: from localhost.localdomain (esdhcp041217.research.nokia.com [172.21.41.217]) by mgw-da01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o11HaqJf016130; Mon, 1 Feb 2010 19:36:53 +0200 From: Ameya Palande To: omar.ramirez@ti.com Cc: nm@ti.com, linux-omap@vger.kernel.org, deepak.chitriki@ti.com Subject: [PATCHv2] DSPBRIDGE: Fix memory leak in PROC_AutoStart() Date: Mon, 1 Feb 2010 19:36:34 +0200 Message-Id: X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1265045493.1997.26.camel@sanganak> References: <1265045493.1997.26.camel@sanganak> X-OriginalArrivalTime: 01 Feb 2010 17:36:56.0404 (UTC) FILETIME=[265B9140:01CAA365] 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.3 (demeter.kernel.org [140.211.167.41]); Mon, 01 Feb 2010 17:37:14 +0000 (UTC) diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c index 491661f..ff3329f 100644 --- a/drivers/dsp/bridge/rmgr/proc.c +++ b/drivers/dsp/bridge/rmgr/proc.c @@ -411,6 +411,8 @@ DSP_STATUS PROC_AutoStart(struct CFG_DEVNODE *hDevNode, "No Exec file found \n"); } func_cont: + MEM_Free(hProcObject->g_pszLastCoff); + hProcObject->g_pszLastCoff = NULL; MEM_FreeObject(hProcObject); func_end: GT_1trace(PROC_DebugMask, GT_ENTER,