summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/datetimemodule.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index 2896486..6ff7eb3 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/datetimemodule.c
@@ -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;
}