mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 02:22:21 +03:00
use pool given to method
This commit is contained in:
parent
cdda77d302
commit
b221423f1c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user