the PyDict_SetItem does not borrow a reference, so we need to decref

reported by Mark Hammon
This commit is contained in:
Jeremy Hylton 2000-06-09 16:20:39 +00:00
parent 815d5b934b
commit a251ea0680
1 changed files with 1 additions and 0 deletions

View File

@ -351,6 +351,7 @@ get_inprogress_dict()
Py_DECREF(inprogress); Py_DECREF(inprogress);
return NULL; return NULL;
} }
Py_DECREF(inprogress);
} }
return inprogress; return inprogress;
} }