Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential refleak in type_new when setting __new__ fails #71412

Closed
zhangyangyu opened this issue Jun 5, 2016 · 3 comments
Closed

Potential refleak in type_new when setting __new__ fails #71412

zhangyangyu opened this issue Jun 5, 2016 · 3 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage

Comments

@zhangyangyu
Copy link
Member

BPO 27225
Nosy @serhiy-storchaka, @zhangyangyu
Files
  • refleak_in_type_new.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2016-06-05.08:07:41.857>
    created_at = <Date 2016-06-05.05:09:44.535>
    labels = ['interpreter-core', 'performance']
    title = 'Potential refleak in type_new when setting __new__ fails'
    updated_at = <Date 2016-06-05.08:07:41.856>
    user = 'https://github.com/zhangyangyu'

    bugs.python.org fields:

    activity = <Date 2016-06-05.08:07:41.856>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2016-06-05.08:07:41.857>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2016-06-05.05:09:44.535>
    creator = 'xiang.zhang'
    dependencies = []
    files = ['43227']
    hgrepos = []
    issue_num = 27225
    keywords = ['patch']
    message_count = 3.0
    messages = ['267382', '267399', '267401']
    nosy_count = 3.0
    nosy_names = ['python-dev', 'serhiy.storchaka', 'xiang.zhang']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'resource usage'
    url = 'https://bugs.python.org/issue27225'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6']

    @zhangyangyu
    Copy link
    Member Author

    As the title, there seems to be a potential refleak in type_new when setting __new__ fails.

    @serhiy-storchaka
    Copy link
    Member

    LGTM.

    @serhiy-storchaka serhiy-storchaka added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jun 5, 2016
    @serhiy-storchaka serhiy-storchaka self-assigned this Jun 5, 2016
    @serhiy-storchaka serhiy-storchaka added the performance Performance or resource usage label Jun 5, 2016
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jun 5, 2016

    New changeset 33b53734805b by Serhiy Storchaka in branch '3.5':
    Issue bpo-27225: Fixed a reference leak in type_new when setting __new__ fails.
    https://hg.python.org/cpython/rev/33b53734805b

    New changeset 31ad7885e2e5 by Serhiy Storchaka in branch 'default':
    Issue bpo-27225: Fixed a reference leak in type_new when setting __new__ fails.
    https://hg.python.org/cpython/rev/31ad7885e2e5

    New changeset db24d51c69d3 by Serhiy Storchaka in branch '2.7':
    Issue bpo-27225: Fixed a reference leak in type_new when setting __new__ fails.
    https://hg.python.org/cpython/rev/db24d51c69d3

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants