diff mbox

[PATCHv2] DSPBRIDGE: Fix memory leak in PROC_AutoStart()

Message ID ea29f699c0916873d206c498bbf41a610a53492d.1265045613.git.ameya.palande@nokia.com (mailing list archive)
State Accepted, archived
Delegated to:
Headers show

Commit Message

Ameya Palande Feb. 1, 2010, 5:36 p.m. UTC
None
diff mbox

Patch

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,