Skip to content

Commit

Permalink
DP: bugfix, set pointer to NULL after free
Browse files Browse the repository at this point in the history
There should not be any pointers left pointing
to a freed structures.

Signed-off-by: Marcin Szkudlinski <[email protected]>
  • Loading branch information
marcinszkudlinski committed Sep 21, 2023
1 parent 644954f commit 60c4594
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/include/sof/audio/component_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 60c4594

Please sign in to comment.