Skip to content

Commit bf3acdc

Browse files
committed
[fix] double-free on a non-lowercased transliterator name
1 parent fe64076 commit bf3acdc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/transliterate.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,6 @@ char *transliterate(char *trans_name, char *str, size_t len) {
715715

716716
uint32_t trans_node_id = result.node_id;
717717

718-
if (allocated_trans_name) free(trans_name);
719-
720718
result = trie_get_prefix_from_index(trans_table->trie, NAMESPACE_SEPARATOR_CHAR, NAMESPACE_SEPARATOR_CHAR_LEN, result.node_id, result.tail_pos);
721719

722720
trans_node_id = result.node_id;

0 commit comments

Comments
 (0)