Message334709
OK, let me make a PR, I found another leak for type:ignore.
On Fri, Feb 1, 2019 at 9:22 AM Pablo Galindo Salgado <report@bugs.python.org>
wrote:
>
> Pablo Galindo Salgado <pablogsal@gmail.com> added the comment:
>
> The extra referenced happen here in Python-ast.c :
>
> value = ast2obj_string(o->type_comment);
> if (!value) goto failed;
> if (_PyObject_SetAttrId(result, &PyId_type_comment, value) == -1)
> goto failed;
> Py_DECREF(value);
>
> ast2obj_string increments it once and the setattr does it again and then
> there is only one Py_DECREF.
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue35879>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2019-02-01 17:35:37 | gvanrossum | set | recipients:
+ gvanrossum, lukasz.langa, pablogsal |
2019-02-01 17:35:35 | gvanrossum | link | issue35879 messages |
2019-02-01 17:35:35 | gvanrossum | create | |
|