faster-rnnlm icon indicating copy to clipboard operation
faster-rnnlm copied to clipboard

Code bug(memory leaks)

Open fabulousfeng opened this issue 6 years ago • 1 comments

~MaybeStaticArray() (hierarchical_softmax.cc:316) Mismatched free() / delete / delete [] is detected by Valgrind. delete dynamic_array; should be replaced by delete [] dynamic_array; since you defined new T[dynamic_size] in the constructor. This may cause undefined behavior.

fabulousfeng avatar Sep 13 '18 09:09 fabulousfeng

@akhti

fabulousfeng avatar Sep 13 '18 09:09 fabulousfeng