Timo Denk
Timo Denk
Moving the comment by "Vasily" from [the blog post](https://timodenk.com/blog/cubic-spline-interpolation) to this issue: > [...] it would be nice if you could add an option to save the resulting data to...
Right now there is a memory leak present because the allocated memory is not freed in the object destructor.
The if statement `if (word == -1) continue;` will never evaluate to `true` because when filling the `sen` array, words with id `-1` are already being discarded by [this](https://github.com/dav/word2vec/blob/0f29b188b17145d0c1d0953ba0bc80a2208dd8a0/src/word2vec.c#L413) check...