Skip to content

Commit df4cffd

Browse files
committed
BUG: bring implementation into compliance with cython documentation
1 parent cf458cf commit df4cffd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/src/hashtable_class_helper.pxi.in

+5-1
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,11 @@ cdef class PyObjectHashTable(HashTable):
691691

692692
def __dealloc__(self):
693693
if self.table is not NULL:
694-
self.destroy()
694+
# cython documentation -
695+
# "don’t call any other methods of the object"
696+
# self.destroy()
697+
kh_destroy_pymap(self.table)
698+
self.table = NULL
695699

696700
def __len__(self):
697701
return self.table.size

0 commit comments

Comments
 (0)