Skip to content

_pickle: Py_DECREF seems to be missing from a failure case in fast_save_enter() #76194

Closed

Description

@lioncash
mannequin
BPO 32013
Nosy @serhiy-storchaka, @lioncash
PRs
  • bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() #4384
  • [3.6] bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() (GH-4384) #4385
  • 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 = None
    closed_at = <Date 2017-11-13.08:21:13.558>
    created_at = <Date 2017-11-13.05:08:34.362>
    labels = ['extension-modules', '3.7', 'performance']
    title = '_pickle: Py_DECREF seems to be missing from a failure case in fast_save_enter()'
    updated_at = <Date 2017-11-13.08:21:13.557>
    user = 'https://github.com/lioncash'

    bugs.python.org fields:

    activity = <Date 2017-11-13.08:21:13.557>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-11-13.08:21:13.558>
    closer = 'serhiy.storchaka'
    components = ['Extension Modules']
    creation = <Date 2017-11-13.05:08:34.362>
    creator = 'Mathew M.'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32013
    keywords = ['patch']
    message_count = 3.0
    messages = ['306139', '306147', '306148']
    nosy_count = 2.0
    nosy_names = ['serhiy.storchaka', 'Mathew M.']
    pr_nums = ['4384', '4385']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'resource usage'
    url = 'https://bugs.python.org/issue32013'
    versions = ['Python 3.6', 'Python 3.7']

    Activity

    1. lioncash commented on Nov 13, 2017

      lioncashmannequin
      MannequinAuthor

      Hey there! I'm fairly new to the development process for Python, so I figured I'd start off with something tiny and then work on up from there. I'm not sure if this sort of minor fix warrants an issue being created, but I made this just to err on the safe side of things.

      So, as far as I understand (by all means correct me if I'm wrong), a 'Py_DECREF(key);' should be present before the return in the conditional within fast_save_enter() (

      return 0;
      )

    2. added
      3.7 (EOL)
      extension-modules
      on Nov 13, 2017
    3. serhiy-storchaka commented on Nov 13, 2017

      @serhiy-storchaka
      Member

      New changeset f76231f by Serhiy Storchaka (Mat M) in branch 'master':
      bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() (bpo-4384)
      f76231f

    4. serhiy-storchaka commented on Nov 13, 2017

      @serhiy-storchaka
      Member

      New changeset 6ed9d4e by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6':
      bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() (GH-4384) (bpo-4385)
      6ed9d4e

    5. added
      performance
      on Nov 13, 2017
    6. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)extension-modulesperformance

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions