mirror of https://github.com/thesofproject/sof.git
DP: bugfix, set pointer to NULL after free
There should not be any pointers left pointing to a freed structures. Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
This commit is contained in:
parent
e6c3decd38
commit
1ea43cafe7
|
@ -55,6 +55,7 @@ static inline void comp_free(struct comp_dev *dev)
|
||||||
dev->task) {
|
dev->task) {
|
||||||
schedule_task_free(dev->task);
|
schedule_task_free(dev->task);
|
||||||
rfree(dev->task);
|
rfree(dev->task);
|
||||||
|
dev->task = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
dev->drv->ops.free(dev);
|
dev->drv->ops.free(dev);
|
||||||
|
|
Loading…
Reference in New Issue