Memory leak fixed with ANN training data.