Commits

Benjamin Peterson committed dda9bee

_PyObject_LookupSpecial returns a new reference

  • Participants
  • Parent commits 142cb6f
  • Branches legacy-trunk

Comments (0)

Files changed (1)

Objects/abstract.c

         }
         /* And call it. */
         result = PyObject_CallFunctionObjArgs(method, format_spec, NULL);
+        Py_DECREF(method);
     }
 
     if (result == NULL)