Commit f9f5f9df authored by stewart@mysql.com's avatar stewart@mysql.com

BUG#19318 valgrind: memory leak in ndb_mgmd

2nd part of the patch

fix functions called by ndbd to deal with memory allocation properly. 
parent 518100f0
...@@ -1808,7 +1808,7 @@ ndb_mgm_get_configuration(NdbMgmHandle handle, unsigned int version) { ...@@ -1808,7 +1808,7 @@ ndb_mgm_get_configuration(NdbMgmHandle handle, unsigned int version) {
} }
delete prop; delete prop;
return (ndb_mgm_configuration*)cvf.m_cfg; return (ndb_mgm_configuration*)cvf.getConfigValues();
} while(0); } while(0);
delete prop; delete prop;
......
...@@ -2344,6 +2344,7 @@ ConfigInfo::ConfigInfo() ...@@ -2344,6 +2344,7 @@ ConfigInfo::ConfigInfo()
ndbout << "Edit file " << __FILE__ << "." << endl; ndbout << "Edit file " << __FILE__ << "." << endl;
require(false); require(false);
} }
delete section;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment