Fix memory leak 93925

master
Liam Marshall 2015-05-15 12:52:12 -05:00
parent 38b93fe7a7
commit 289d84aac0
1 changed files with 1 additions and 0 deletions

View File

@ -241,6 +241,7 @@ AbstractNode *ControlModule::instantiate(const Context* /*ctx*/, const ModuleIns
boost::uint32_t steps = range.nbsteps();
if (steps >= 10000) {
PRINTB("WARNING: Bad range parameter for children: too many elements (%lu).", steps);
delete node;
return NULL;
}
for (Value::RangeType::iterator it = range.begin();it != range.end();it++) {