pipeline: add rfree pipe_task in pipeline_free

Memory allocated for p->pipe_task should be freed
in pipeline_free() in order to avoid memory leaks.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
This commit is contained in:
Bartosz Kokoszko 2019-10-28 17:00:44 +01:00 committed by Tomasz Lauda
parent 1fbc078b78
commit 0e8cf66e57
1 changed files with 3 additions and 1 deletions

View File

@ -229,8 +229,10 @@ int pipeline_free(struct pipeline *p)
}
/* remove from any scheduling */
if (p->pipe_task)
if (p->pipe_task) {
schedule_task_free(p->pipe_task);
rfree(p->pipe_task);
}
/* now free the pipeline */
rfree(p);