BUG#19318 valgrind: memory leak in ndb_mgmd
fix based on review ndb/src/mgmsrv/ConfigInfo.cpp: move delete to more appropriate places inside loop.
This commit is contained in:
parent
d7b7d480b1
commit
49ccf53e8e
@ -2287,6 +2287,7 @@ ConfigInfo::ConfigInfo()
|
||||
|
||||
// Replace section with modified section
|
||||
m_info.put(param._section, section, true);
|
||||
delete section;
|
||||
|
||||
if(param._type != ConfigInfo::CI_SECTION){
|
||||
Properties * p;
|
||||
@ -2344,7 +2345,6 @@ ConfigInfo::ConfigInfo()
|
||||
ndbout << "Edit file " << __FILE__ << "." << endl;
|
||||
require(false);
|
||||
}
|
||||
delete section;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user