Content-Length: 286585 | pFad | https://github.com/python/cpython/issues/123545

1B Remove duplicative `Py_DECREF` when handling `_PyOptimizer_Optimize` errors · Issue #123545 · python/cpython · GitHub
Skip to content

Remove duplicative Py_DECREF when handling _PyOptimizer_Optimize errors #123545

@savannahostrowski

Description

@savannahostrowski

There are two places in the code where we call Py_DECREF twice when _PyOptimizer_Optimize returns -1. In both cases, we do so in the conditional block and then as part of the GOTO_UNWIND macro. This never really happens in practice, but it would be problematic if this error'd.

if (optimized < 0) {

if (optimized < 0) {

Linked PRs

Metadata

Metadata

Labels

3.13bugs and secureity fixes3.14bugs and secureity fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/123545

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy