Skip to content

Commit 1e25c6b

Browse files
anmyachevvnlitvinov
authored andcommitted
Correct destroying of NA set table
1 parent 143deb1 commit 1e25c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/parsers.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,7 @@ cdef kh_str_starts_t* kset_from_list(list values) except NULL:
20852085

20862086
# None creeps in sometimes, which isn't possible here
20872087
if not isinstance(val, bytes):
2088-
kh_destroy_str(table)
2088+
kh_destroy_str_starts(table)
20892089
raise ValueError('Must be all encoded bytes')
20902090

20912091
kh_put_str_starts_item(table, PyBytes_AsString(val), &ret)

0 commit comments

Comments
 (0)