[3.14] gh-144307: Fix a reference leak during module teardown (GH-144308) (GH-144327)

gh-144307: Fix a reference leak during module teardown (GH-144308)
(cherry picked from commit 219b7ac9d562701bbde21d7e17845c4942b83338)

Signed-off-by: Yongtao Huang <[email protected]>
Co-authored-by: Yongtao Huang <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2 files changed