Issue 36745: A possible reference leak in PyObject_SetAttr() (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/80926

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:14 admin set github: 80926
2019-04-28 13:17:43 miss-islington set messages: +
2019-04-28 13:00:14 asvetlov set status: open -> closednosy: + asvetlovmessages: + resolution: fixedstage: patch review -> resolved
2019-04-28 12:59:16 miss-islington set pull_requests: + <pull%5Frequest12917>
2019-04-28 12:58:59 miss-islington set nosy: + miss-islingtonmessages: +
2019-04-28 12:19:28 ZackerySpytz set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest12916>
2019-04-28 12:17:00 ZackerySpytz create