Fix leak in KNN::store_model_features, duplicate increases ref count
Merge pull request #1800 from iglesias/develop

Fix leak in KNN::store_model_features, duplicate increases ref count