From 78bbefec988c421784bb35c70d301698ef62f3fc Mon Sep 17 00:00:00 2001 From: Marius Muja Date: Thu, 22 Sep 2011 00:42:51 +0000 Subject: [PATCH] Applied fix from #1382 --- modules/flann/src/miniflann.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/flann/src/miniflann.cpp b/modules/flann/src/miniflann.cpp index d26c3b9732..a9fcbe7214 100644 --- a/modules/flann/src/miniflann.cpp +++ b/modules/flann/src/miniflann.cpp @@ -644,6 +644,7 @@ void Index::save(const std::string& filename) const if( algo == FLANN_INDEX_LSH ) { saveIndex_(this, index, fout); + fclose(fout); return; }