Skip to content

Commit 69c229e

Browse files
committed
respond to code review comments
1 parent 2707c03 commit 69c229e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stringdtype/stringdtype/src/dtype.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ stringdtype_clear_loop(void *NPY_UNUSED(traverse_context),
173173
while (size--) {
174174
if (data != NULL) {
175175
free(*(ss **)data);
176+
*(ss **)data = NULL;
176177
}
177178
data += stride;
178179
}
@@ -189,7 +190,7 @@ stringdtype_get_clear_loop(void *NPY_UNUSED(traverse_context),
189190
NpyAuxData **NPY_UNUSED(out_auxdata),
190191
NPY_ARRAYMETHOD_FLAGS *flags)
191192
{
192-
*flags = NPY_METH_REQUIRES_PYAPI | NPY_METH_NO_FLOATINGPOINT_ERRORS;
193+
*flags = NPY_METH_NO_FLOATINGPOINT_ERRORS;
193194
*out_loop = &stringdtype_clear_loop;
194195
return 0;
195196
}

0 commit comments

Comments
 (0)