Commit 60587c6
committed
Fix refcount leak in
`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>finalize_remove_modules()
1 parent 9b154ab commit 60587c6
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1622 | 1622 | | |
1623 | 1623 | | |
1624 | 1624 | | |
| 1625 | + | |
1625 | 1626 | | |
1626 | 1627 | | |
1627 | 1628 | | |
| |||
0 commit comments