From patchwork Wed Sep 2 19:07:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ameya Palande X-Patchwork-Id: 45252 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 n82J7mMU030250 for ; Wed, 2 Sep 2009 19:07:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753351AbZIBTHp (ORCPT ); Wed, 2 Sep 2009 15:07:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753347AbZIBTHo (ORCPT ); Wed, 2 Sep 2009 15:07:44 -0400 Received: from smtp.nokia.com ([192.100.122.230]:20345 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753328AbZIBTHo (ORCPT ); Wed, 2 Sep 2009 15:07:44 -0400 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n82J7Act016140; Wed, 2 Sep 2009 22:07:34 +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 22:07:40 +0300 Received: from mgw-sa01.ext.nokia.com ([147.243.1.47]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 2 Sep 2009 22:07:35 +0300 Received: from localhost.localdomain (esdhcp04090.research.nokia.com [172.21.40.90]) by mgw-sa01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n82J7WTE022179; Wed, 2 Sep 2009 22:07:32 +0300 From: Ameya Palande To: linux-omap@vger.kernel.org Cc: omar.ramirez@ti.com, x0095840@ti.com Subject: [PATCHv2] DSPBRIDGE: Fix memory leak in PROC_AutoStart() Date: Wed, 2 Sep 2009 22:07:36 +0300 Message-Id: <1251918456-24501-1-git-send-email-ameya.palande@nokia.com> X-Mailer: git-send-email 1.6.2.4 In-Reply-To: <1251917982-23690-1-git-send-email-ameya.palande@nokia.com> References: <1251917982-23690-1-git-send-email-ameya.palande@nokia.com> X-OriginalArrivalTime: 02 Sep 2009 19:07:35.0736 (UTC) FILETIME=[A1A9C380:01CA2C00] 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 | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c index a75b64a..eb8b4a9 100644 --- a/drivers/dsp/bridge/rmgr/proc.c +++ b/drivers/dsp/bridge/rmgr/proc.c @@ -512,6 +512,7 @@ DSP_STATUS PROC_AutoStart(struct CFG_DEVNODE *hDevNode, "No Exec file found \n"); } func_cont: + MEM_Free(hProcObject->g_pszLastCoff); MEM_FreeObject(hProcObject); func_end: GT_1trace(PROC_DebugMask, GT_ENTER,