summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2020-08-30 13:31:36 +0100
committerGitHub <noreply@github.com>2020-08-30 13:31:36 +0100
commita7e1d210cdf5cb9b24d3f0fed218e8afab914282 (patch)
tree47dd0e3e9e4a69a8b9134dcc03e696132b052616
parent68cfbd8d2f41a793ec226369834e714b35a667d8 (diff)
downloadnumpy-a7e1d210cdf5cb9b24d3f0fed218e8afab914282.tar.gz
Update numpy/core/src/multiarray/datetime_busday.c
-rw-r--r--numpy/core/src/multiarray/datetime_busday.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/datetime_busday.c b/numpy/core/src/multiarray/datetime_busday.c
index 5acba600a..2cf157551 100644
--- a/numpy/core/src/multiarray/datetime_busday.c
+++ b/numpy/core/src/multiarray/datetime_busday.c
@@ -840,7 +840,6 @@ PyArray_BusDayRollConverter(PyObject *roll_in, NPY_BUSDAY_ROLL *roll)
/* accept bytes input */
PyObject *obj_str = PyUnicode_FromEncodedObject(obj, NULL, NULL);
if (obj_str == NULL) {
- Py_DECREF(obj);
return 0;
}
obj = obj_str;