Browse Source

task: Fix refcount leak when assigning attribute of task object

Regression on 1.11
rdb 1 year ago
parent
commit
f1f15a92a4
1 changed files with 0 additions and 1 deletions
  1. 0 1
      panda/src/event/pythonTask.cxx

+ 0 - 1
panda/src/event/pythonTask.cxx

@@ -301,7 +301,6 @@ __setattr__(PyObject *self, PyObject *attr, PyObject *v) {
 
   PyObject *descr = _PyType_Lookup(Py_TYPE(self), attr);
   if (descr != nullptr) {
-    Py_INCREF(descr);
     descrsetfunc f = descr->ob_type->tp_descr_set;
     if (f != nullptr) {
       return f(descr, self, v);