Menu

#4 Memory Leak on StlContainerTiXmlBinding

open
nobody
None
5
2005-12-15
2005-12-15
No

There is memory leak on
StlContainerTiXmlBinding::fromXml(..).

It have to release memory like this:

while(child) {
T * value = new T();
... skip ...
data->push_back(*value);
delete value; // Add THIS!!!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.