diff --git a/spacy/spacy.pyx b/spacy/spacy.pyx index aca8795fa..68cb23aba 100644 --- a/spacy/spacy.pyx +++ b/spacy/spacy.pyx @@ -142,7 +142,10 @@ cdef class Language: word = self.init_lexeme(string, hashed, split, length) cdef Lexeme* clobbered = self.happax.insert(hashed, word) if clobbered != NULL: - free(clobbered) + # Can't do this --- we might be pointing to the Lexeme in .tail. + # Fix that to reduce memory, probably. + #free(clobbered) + pass self.bacov[hashed] = string return word