free memory in node-crf

I found this leak, please help check my code.
Tested on my linux.