Skip to content

Conversation

@hyongtao-code
Copy link
Contributor

@hyongtao-code hyongtao-code commented Jan 28, 2026

PyIter_Next() returns a new reference, but finalize_remove_modules() failed to DECREF key when PyObject_GetItem() returns NULL. Fix by DECREF'ing key before continuing.

`PyIter_Next()` returns a new reference, but `finalize_remove_modules()`
failed to DECREF `key` when `PyObject_GetItem()`` returns NULL.

Fix by DECREF'ing `key` before continuing.

Signed-off-by: Yongtao Huang <yongtaoh2022@gamil.com>
Copy link
Member

@ZeroIntensity ZeroIntensity left a comment

Choose a reason for hiding this comment

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

This is user-facing so it needs a news entry.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants