This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: A possible reference leak in PyObject_SetAttr()
Type: Stage: resolved
Components: Interpreter Core Versions: Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ZackerySpytz, asvetlov, miss-islington
Priority: normal Keywords: patch

Created on 2019-04-28 12:17 by ZackerySpytz, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 12993 merged ZackerySpytz, 2019-04-28 12:19
PR 12994 merged miss-islington, 2019-04-28 12:59
Messages (4)
msg341025 - (view) Author: Zackery Spytz (ZackerySpytz) * (Python triager) Date: 2019-04-28 12:16
If the PyUnicode_AsUTF8() call happens to fail in PyObject_SetAttr(), "name" will be leaked.
msg341026 - (view) Author: miss-islington (miss-islington) Date: 2019-04-28 12:58
New changeset e0dcb85b7d64153d1741698c04a6736c9669603a by Miss Islington (bot) (Zackery Spytz) in branch 'master':
bpo-36745: Fix a possible reference leak in PyObject_SetAttr() (GH-12993)
https://github.com/python/cpython/commit/e0dcb85b7d64153d1741698c04a6736c9669603a
msg341027 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2019-04-28 13:00
thanks!
msg341029 - (view) Author: miss-islington (miss-islington) Date: 2019-04-28 13:17
New changeset 896c6357f3267fe5dc5a33979f8cf46b0a74cfee by Miss Islington (bot) in branch '3.7':
bpo-36745: Fix a possible reference leak in PyObject_SetAttr() (GH-12993)
https://github.com/python/cpython/commit/896c6357f3267fe5dc5a33979f8cf46b0a74cfee
History
Date User Action Args
2022-04-11 14:59:14adminsetgithub: 80926
2019-04-28 13:17:43miss-islingtonsetmessages: + msg341029
2019-04-28 13:00:14asvetlovsetstatus: open -> closed

nosy: + asvetlov
messages: + msg341027

resolution: fixed
stage: patch review -> resolved
2019-04-28 12:59:16miss-islingtonsetpull_requests: + pull_request12917
2019-04-28 12:58:59miss-islingtonsetnosy: + miss-islington
messages: + msg341026
2019-04-28 12:19:28ZackerySpytzsetkeywords: + patch
stage: patch review
pull_requests: + pull_request12916
2019-04-28 12:17:00ZackerySpytzcreate