Fix memory leak.

This commit is contained in:
Mark Dickinson 2010-04-20 22:39:53 +00:00
parent 7c186e2a18
commit 56a6087826

View file

@ -1914,10 +1914,9 @@ delta_remainder(PyObject *left, PyObject *right)
return NULL;
remainder = microseconds_to_delta(pyus_remainder);
if (remainder == NULL) {
Py_DECREF(divmod);
Py_DECREF(pyus_remainder);
if (remainder == NULL)
return NULL;
}
return remainder;
}