Skip to content

Remove free() in mo_task_cancel()#50

Merged
jserv merged 1 commit into
sysprog21:mainfrom
vicLin8712:fix-doule-free
Nov 21, 2025
Merged

Remove free() in mo_task_cancel()#50
jserv merged 1 commit into
sysprog21:mainfrom
vicLin8712:fix-doule-free

Conversation

@vicLin8712
Copy link
Copy Markdown
Collaborator

@vicLin8712 vicLin8712 commented Nov 21, 2025

This PR removes redundant free() in mo_task_cancel(), which has been called in list_remove().

As mentioned in #49


Summary by cubic

Remove redundant free(node) in mo_task_cancel(); list_remove() already frees the node. This prevents double-free and potential crashes or heap corruption when canceling a task.

Written for commit 39c0212. Summary will update automatically on new commits.

This commit removes redundant free() in mo_task_cancel() which
has been called in list_remove().
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@jserv jserv merged commit 7e7fa67 into sysprog21:main Nov 21, 2025
5 checks passed
@jserv
Copy link
Copy Markdown
Contributor

jserv commented Nov 21, 2025

Thank @vicLin8712 for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants