mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
Fixed memory leak for single-threaded mode.
This commit is contained in:
parent
fba75a885e
commit
8a03fd63ba
@ -487,6 +487,7 @@ int main(int argc, char** argv)
|
||||
pool.Submit(task);
|
||||
#else
|
||||
task->Run();
|
||||
delete task;
|
||||
#endif
|
||||
|
||||
source = NULL; //make sure it doesn't get deleted
|
||||
|
Loading…
Reference in New Issue
Block a user