GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix missing decref when storing and dict is detached but has been del… · python/cpython@ac503e8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Objects
    • dictobject.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Objects/dictobject.c‎

Copy file name to clipboardExpand all lines: Objects/dictobject.c
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6805,6 +6805,9 @@ _PyObject_StoreInstanceAttribute(PyObject *obj, PyObject *name, PyObject *value)
68056805
if (dict == NULL) {
68066806
return -1;
68076807
}
6808+
int res = store_instance_attr_dict(obj, dict, name, value);
6809+
Py_DECREF(dict);
6810+
return res;
68086811
}
68096812
return store_instance_attr_dict(obj, dict, name, value);
68106813
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.