Kaydet (Commit) 56a60878 authored tarafından Mark Dickinson's avatar Mark Dickinson

Fix memory leak.

üst 7c186e2a
...@@ -1914,10 +1914,9 @@ delta_remainder(PyObject *left, PyObject *right) ...@@ -1914,10 +1914,9 @@ delta_remainder(PyObject *left, PyObject *right)
return NULL; return NULL;
remainder = microseconds_to_delta(pyus_remainder); remainder = microseconds_to_delta(pyus_remainder);
if (remainder == NULL) { Py_DECREF(pyus_remainder);
Py_DECREF(divmod); if (remainder == NULL)
return NULL; return NULL;
}
return remainder; return remainder;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment