8000 Merge pull request #12617 from seberg/ufunc-cleanup · numpy/numpy@d0aa124 · GitHub
[go: up one dir, main page]

Skip to content

Commit d0aa124

Browse files
authored
Merge pull request #12617 from seberg/ufunc-cleanup
BUG: Add missing free in ufunc dealloc
2 parents 6b8a730 + 7430b27 commit d0aa124

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
@@ -5279,6 +5279,8 @@ ufunc_dealloc(PyUFuncObject *ufunc)
52795279
{
52805280
PyArray_free(ufunc->core_num_dims);
52815281
PyArray_free(ufunc->core_dim_ixs);
5282+
PyArray_free(ufunc->core_dim_sizes);
5283+
PyArray_free(ufunc->core_dim_flags);
52825284
PyArray_free(ufunc->core_offsets);
52835285
PyArray_free(ufunc->core_signature);
52845286
PyArray_free(ufunc->ptr);

0 commit comments

Comments
 (0)
0