memory leak fix

This commit is contained in:
Darren Ranalli 2009-02-17 07:10:40 +00:00
parent 0d53d180a9
commit 7f3c5d660f
1 changed files with 3 additions and 1 deletions

View File

@ -229,7 +229,9 @@ set_name(const string &name) {
}
}
PStatCollector parent(_show_code_pcollector, name.substr(0, trimmed));
_task_pcollector = PStatCollector(parent, name.substr(0, end));
// prevent memory leak
//_task_pcollector = PStatCollector(parent, name.substr(0, end));
_task_pcollector = parent;
#endif // DO_PSTATS
}