New submission from Peter Cawley:

In the implementation of the IMPORT_STAR opcode, if the call to 
PyFrame_FastToLocalsWithError fails, or f_locals is NULL, then control flow 
jumps to the error handler without performing a decref on the "from" variable. 
As the "from" variable is initialised by POPping from the stack, the reference 
is leaked.

----------
components: Interpreter Core
messages: 288582
nosy: Peter Cawley
priority: normal
severity: normal
status: open
title: Certain errors during IMPORT_STAR can leak a reference
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29655>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to