diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-01-01 00:15:43 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-01-01 00:15:43 +0400 |
commit | 18aaf4750a11f7a903a143b83f51eb34323613ea (patch) | |
tree | c203ae2f7fa79a070eae24c67279812944aa3f3b /moses-cmd | |
parent | 02b78d72d98c888df64b994535e7058737bc18e4 (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.cpp | 1 |
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; |