[vtk-developers] AMREnzoReader valgrind defects
Bill Lorensen
bill.lorensen at gmail.com
Sun Jun 3 15:32:33 EDT 2012
The subject has had valgrind issues for a while:
http://open.cdash.org/viewDynamicAnalysisFile.php?id=2759216
A quick look shows that some of its methods are returning cstr
pointers to local std::strings which is not correct. Perhaps they
should be returning std::string"s instead?
For example:
const char * GetEnzoDirectory( const char * path )
{
// int start;
// GetEnzoMajorFileName( path, start );
std::string mydir = vtksys::SystemTools::GetFilenamePath( std::string(path) );
return mydir.c_str( );
}
More information about the vtk-developers
mailing list