summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-05-14 19:11:19 -0600
committerGitHub <noreply@github.com>2017-05-14 19:11:19 -0600
commitacbd31852b8e53b291ad864ff4afb78f50e08fc2 (patch)
tree88c9f47cdca6ffff450c693dcd4291cac881a2d6
parent6f2d5c474264b96caca3af16ab2a5ab34e7adab2 (diff)
parentb290e05e9e9fa87bcc8c611582dc74c2decc5a10 (diff)
downloadnumpy-acbd31852b8e53b291ad864ff4afb78f50e08fc2.tar.gz
Merge pull request #9118 from SuperBo/master
BUG: Fix reference count error of types when init multiarraymodule
-rw-r--r--numpy/core/src/multiarray/multiarraymodule.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/numpy/core/src/multiarray/multiarraymodule.c b/numpy/core/src/multiarray/multiarraymodule.c
index 81a1bc543..cdc905b51 100644
--- a/numpy/core/src/multiarray/multiarraymodule.c
+++ b/numpy/core/src/multiarray/multiarraymodule.c
@@ -4666,23 +4666,15 @@ PyMODINIT_FUNC initmultiarray(void) {
ADDCONST(MAY_SHARE_EXACT);
#undef ADDCONST
- Py_INCREF(&PyArray_Type);
PyDict_SetItemString(d, "ndarray", (PyObject *)&PyArray_Type);
- Py_INCREF(&PyArrayIter_Type);
PyDict_SetItemString(d, "flatiter", (PyObject *)&PyArrayIter_Type);
- Py_INCREF(&PyArrayMultiIter_Type);
PyDict_SetItemString(d, "nditer", (PyObject *)&NpyIter_Type);
- Py_INCREF(&NpyIter_Type);
PyDict_SetItemString(d, "broadcast",
(PyObject *)&PyArrayMultiIter_Type);
- Py_INCREF(&PyArrayDescr_Type);
PyDict_SetItemString(d, "dtype", (PyObject *)&PyArrayDescr_Type);
-
- Py_INCREF(&PyArrayFlags_Type);
PyDict_SetItemString(d, "flagsobj", (PyObject *)&PyArrayFlags_Type);
/* Business day calendar object */
- Py_INCREF(&NpyBusDayCalendar_Type);
PyDict_SetItemString(d, "busdaycalendar",
(PyObject *)&NpyBusDayCalendar_Type);
set_flaginfo(d);