Skip to content

Commit c186561

Browse files
committed
free the allocator in the descriptor deallocator
1 parent d71ac99 commit c186561

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stringdtype/stringdtype/src/dtype.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ stringdtype_dealloc(StringDTypeObject *self)
704704
npy_string_free(&self->packed_default_string, self->allocator);
705705
npy_string_free(&self->packed_na_name, self->allocator);
706706
npy_string_free_allocator(self->allocator);
707+
PyThread_free_lock(self->allocator_lock);
707708
}
708709
PyArrayDescr_Type.tp_dealloc((PyObject *)self);
709710
}

0 commit comments

Comments
 (0)