mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Fix memory leak.
This commit is contained in:
parent
7c186e2a18
commit
56a6087826
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue