From patchwork Wed Sep 2 18:59:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ameya Palande X-Patchwork-Id: 45251 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n82IxqPQ029278 for ; Wed, 2 Sep 2009 18:59:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753296AbZIBS7s (ORCPT ); Wed, 2 Sep 2009 14:59:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752976AbZIBS7s (ORCPT ); Wed, 2 Sep 2009 14:59:48 -0400 Received: from smtp.nokia.com ([192.100.122.233]:37413 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753180AbZIBS7s (ORCPT ); Wed, 2 Sep 2009 14:59:48 -0400 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-mx06.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n82IxPrG008749; Wed, 2 Sep 2009 21:59:33 +0300 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 2 Sep 2009 21:59:45 +0300 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 2 Sep 2009 21:59:44 +0300 Received: from localhost.localdomain (esdhcp04090.research.nokia.com [172.21.40.90]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n82IxYOP007405; Wed, 2 Sep 2009 21:59:35 +0300 From: Ameya Palande To: linux-omap@vger.kernel.org Cc: omar.ramirez@ti.com, x0095840@ti.com Subject: [PATCH] DSPBRIDGE: Fix memory leak in PROC_AutoStart() Date: Wed, 2 Sep 2009 21:59:42 +0300 Message-Id: <1251917982-23690-1-git-send-email-ameya.palande@nokia.com> X-Mailer: git-send-email 1.6.2.4 X-OriginalArrivalTime: 02 Sep 2009 18:59:44.0745 (UTC) FILETIME=[88EE3D90:01CA2BFF] Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Signed-off-by: Ameya Palande --- drivers/dsp/bridge/rmgr/proc.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c index a75b64a..91ab64f 100644 --- a/drivers/dsp/bridge/rmgr/proc.c +++ b/drivers/dsp/bridge/rmgr/proc.c @@ -512,6 +512,10 @@ DSP_STATUS PROC_AutoStart(struct CFG_DEVNODE *hDevNode, "No Exec file found \n"); } func_cont: + if (hProcObject->g_pszLastCoff) { + MEM_Free(hProcObject->g_pszLastCoff); + hProcObject->g_pszLastCoff = NULL; + } MEM_FreeObject(hProcObject); func_end: GT_1trace(PROC_DebugMask, GT_ENTER,