Skip to content

test_peepholers leaks references (main branch) #129635

Closed
@vstinner

Description

@vstinner

Bug report

Bug description:

Example:

$ ./python -m test -R 3:3 test_peepholer
(...)
test_peepholer leaked [46, 46, 46] references, sum=138
test_peepholer leaked [41, 41, 41] memory blocks, sum=123
(...)

Regression introduced by the change 0664c1a of #129568:

commit 0664c1af9b29a5af2404e04a522f8e9e175ba05a
Author: Yan Yanchii <yyanchiy@gmail.com>
Date:   Tue Feb 4 09:10:55 2025 +0100

    gh-126835: Move constant subscript folding to CFG (#129568)
    
    Move folding of constant subscription from AST optimizer to CFG.
    
    Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions