[New-bugs-announce] [issue23960] PyErr_SetImportError doesn't clean up on some errors

Ofer Schwarz report at bugs.python.org
Wed Apr 15 01:12:48 CEST 2015


New submission from Ofer Schwarz:

When creating kwargs to construct the ImportError, if PyDict_SetItemString fails the function returns without decref'ing the already-created locals.

----------
components: Interpreter Core
files: importerrorcleanup.patch
keywords: patch
messages: 241052
nosy: blackfawn, gregory.p.smith
priority: normal
severity: normal
status: open
title: PyErr_SetImportError doesn't clean up on some errors
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file39023/importerrorcleanup.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23960>
_______________________________________


More information about the New-bugs-announce mailing list