Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a251ea0

Browse files
committed
the PyDict_SetItem does not borrow a reference, so we need to decref
reported by Mark Hammon
1 parent 815d5b9 commit a251ea0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Objects/object.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ get_inprogress_dict()
351351
Py_DECREF(inprogress);
352352
return NULL;
353353
}
354+
Py_DECREF(inprogress);
354355
}
355356
return inprogress;
356357
}

0 commit comments

Comments
 (0)