From b221423f1ce1b1a7b24fbe9b04d66403dd00453b Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Thu, 24 Dec 2015 16:32:26 +0000 Subject: [PATCH] use pool given to method --- contrib/other-builds/moses2/TranslationModel/ProbingPT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/other-builds/moses2/TranslationModel/ProbingPT.cpp b/contrib/other-builds/moses2/TranslationModel/ProbingPT.cpp index 574f67e8e..025c9b807 100644 --- a/contrib/other-builds/moses2/TranslationModel/ProbingPT.cpp +++ b/contrib/other-builds/moses2/TranslationModel/ProbingPT.cpp @@ -175,7 +175,7 @@ TargetPhrase *ProbingPT::CreateTargetPhrase(MemPool &pool, const System &system, if (probingTargetPhrase.property.size()) { //cerr << "probingTargetPhrase.property.size()=" << probingTargetPhrase.property.size() << endl; size_t size = probingTargetPhrase.property.size(); - tp->properties = (char*) system.systemPool.Allocate(size + 1); + tp->properties = (char*) pool.Allocate(size + 1); memcpy(tp->properties, probingTargetPhrase.property.data(), size); tp->properties[size] = 0x0; }