From c5600e96c161d3bff1394ae70d3f98fc5600ddde Mon Sep 17 00:00:00 2001 From: Marcin Szkudlinski Date: Tue, 19 Sep 2023 13:24:19 +0200 Subject: [PATCH] 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 --- src/include/sof/audio/component_ext.h | 1 + 1 file changed, 1 insertion(+) 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);