version: SVN trunk
OS: Linux
1:
graphsym.cpp
Newly allocated memory for _frag_atoms in the OBGraphSym constructor gets not freed.
A simple delete _frag_atoms;
in the destructor solved it for my test case, but this has to be reviewed esp. if frag_atoms are given as parameters.
2:
obconversion.cpp
The last pLineEndBuf created in OBConversion::InstallStreamFilter() gets never freed.
'delete pLineEndBuf;' in the destructor worked though.
Is this now fixed in SVN trunk? I know we've removed a number of minor memory leaks, including the pLineEndBuf.
The first leak is fixed, the second is still in place.
Tested with latest trunk version (4012).
I found the 'delete pLineEndBuf;' in the destructor commented out. If I uncomment it all leaks are gone for my testcases (most are for-loops with heavy OBConversion instantiation and ReadString usage.)
I didnt look through all the OBConversion code, there might be cases where a delete of the pLineEndBuf in destructor segfaults, but for a simple OBConversion instantiation and ReadString usage the issue remains.