Skip to content

Commit b9ba526

Browse files
authored
Merge pull request numpy#27478 from hawkinsp/decref
BUG: Fix extra decref of PyArray_UInt8DType.
2 parents d262f89 + 6e1d277 commit b9ba526

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)