use pool given to method

This commit is contained in:
Hieu Hoang 2015-12-24 16:32:26 +00:00
parent cdda77d302
commit b221423f1c

View File

@ -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;
}