diff --git a/src/include/sof/audio/component_ext.h b/src/include/sof/audio/component_ext.h index 4aa65bf61fcd..2c51943413c3 100644 --- a/src/include/sof/audio/component_ext.h +++ b/src/include/sof/audio/component_ext.h @@ -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);