mirror of https://github.com/thesofproject/sof.git
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:
parent
1fbc078b78
commit
0e8cf66e57
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue