Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2014-01-01 00:15:43 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-01-01 00:15:43 +0400
commit18aaf4750a11f7a903a143b83f51eb34323613ea (patch)
treec203ae2f7fa79a070eae24c67279812944aa3f3b /moses-cmd
parent02b78d72d98c888df64b994535e7058737bc18e4 (diff)
destroy feature functions at end. Otherwise it shows up on valgrind as memory leak
Diffstat (limited to 'moses-cmd')
-rw-r--r--moses-cmd/Main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/moses-cmd/Main.cpp b/moses-cmd/Main.cpp
index 0e60c88df..f4bf08a41 100644
--- a/moses-cmd/Main.cpp
+++ b/moses-cmd/Main.cpp
@@ -755,6 +755,7 @@ int main(int argc, char** argv)
#endif
delete ioWrapper;
+ FeatureFunction::Destroy();
} catch (const std::exception &e) {
std::cerr << "Exception: " << e.what() << std::endl;