mirror of
https://github.com/python/cpython.git
synced 2025-09-28 19:25:27 +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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue