[Cbe-oss-dev] [PATCH 5/7]MARS/core: Fix memory leak in mars task queue destroy

Yuji Mano yuji.mano at am.sony.com
Wed Oct 29 06:05:40 EST 2008


This fixes a memory leak in mars_task_queue_destroy where the allocated buffer
is not properly freed.

Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

---
 core/src/host/lib/task_queue.c |    1 +
 1 file changed, 1 insertion(+)

--- a/core/src/host/lib/task_queue.c
+++ b/core/src/host/lib/task_queue.c
@@ -106,6 +106,7 @@ int mars_task_queue_destroy(struct mars_
 	if (!queue)
 		return MARS_ERROR_NULL;
 
+	free(mars_ea_to_ptr(queue->buffer_ea));
 	free(queue);
 
 	return MARS_SUCCESS;






More information about the cbe-oss-dev mailing list