10000 BUG: Fix extra decref of PyArray_UInt8DType. · charris/numpy@2760a13 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2760a13

Browse files
hawkinspcharris
authored andcommitted
BUG: Fix extra decref of PyArray_UInt8DType.
We didn't take a reference to this type, so we shouldn't be freeing one. This appears to have been missed by PR numpy#25329.
1 parent 5c6d48d commit 2760a13

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

numpy/_core/src/multiarray/abstractdtypes.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ int_common_dtype(PyArray_DTypeMeta *NPY_UNUSED(cls), PyArray_DTypeMeta *other)
177177
/* This is a back-compat fallback to usually do the right thing... */
178178
PyArray_DTypeMeta *uint8_dt = &PyArray_UInt8DType;
179179
PyArray_DTypeMeta *res = NPY_DT_CALL_common_dtype(other, uint8_dt);
180-
Py_DECREF(uint8_dt);
181180
if (res == NULL) {
182181
PyErr_Clear();
183182
}

0 commit comments

Comments
 (0)
0