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:
Marcin Szkudlinski 2023-09-19 13:24:19 +02:00 committed by Kai Vehmanen
parent e6c3decd38
commit 1ea43cafe7
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ static inline void comp_free(struct comp_dev *dev)
dev->task) {
schedule_task_free(dev->task);
rfree(dev->task);
dev->task = NULL;
}
dev->drv->ops.free(dev);