Skip to content

Commit 058ea0f

Browse files
committed
Apply review comments
1 parent 4cef2d4 commit 058ea0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

numpy/_core/src/umath/ufunc_object.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5178,6 +5178,7 @@ ufunc_dealloc(PyUFuncObject *ufunc)
51785178
Py_DECREF(ufunc->identity_value);
51795179
}
51805180
Py_XDECREF(ufunc->obj);
5181+
Py_XDECREF(ufunc->dict);
51815182
Py_XDECREF(ufunc->_loops);
51825183
if (ufunc->_dispatch_cache != NULL) {
51835184
PyArrayIdentityHash_Dealloc(ufunc->_dispatch_cache);
@@ -5198,6 +5199,7 @@ ufunc_traverse(PyUFuncObject *self, visitproc visit, void *arg)
51985199
if (self->identity == PyUFunc_IdentityValue) {
51995200
Py_VISIT(self->identity_value);
52005201
}
5202+
Py_VISIT(self->dict);
52015203
return 0;
52025204
}
52035205

0 commit comments

Comments
 (0)