summaryrefslogtreecommitdiff
path: root/ndb/src
diff options
context:
space:
mode:
authorstewart@mysql.com <>2006-04-24 15:59:34 -0700
committerstewart@mysql.com <>2006-04-24 15:59:34 -0700
commitf9f5f9dff7ab82075c18bca64fdff3a39f7bef3b (patch)
tree86c63e16dc968745914f10e4925348174097700c /ndb/src
parent518100f0b2c79b415158202dd9c070dd7f7fc4d6 (diff)
downloadmariadb-git-f9f5f9dff7ab82075c18bca64fdff3a39f7bef3b.tar.gz
BUG#19318 valgrind: memory leak in ndb_mgmd
2nd part of the patch fix functions called by ndbd to deal with memory allocation properly.
Diffstat (limited to 'ndb/src')
-rw-r--r--ndb/src/mgmapi/mgmapi.cpp2
-rw-r--r--ndb/src/mgmsrv/ConfigInfo.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/ndb/src/mgmapi/mgmapi.cpp b/ndb/src/mgmapi/mgmapi.cpp
index b02367a8870..631b401263c 100644
--- a/ndb/src/mgmapi/mgmapi.cpp
+++ b/ndb/src/mgmapi/mgmapi.cpp
@@ -1808,7 +1808,7 @@ ndb_mgm_get_configuration(NdbMgmHandle handle, unsigned int version) {
}
delete prop;
- return (ndb_mgm_configuration*)cvf.m_cfg;
+ return (ndb_mgm_configuration*)cvf.getConfigValues();
} while(0);
delete prop;
diff --git a/ndb/src/mgmsrv/ConfigInfo.cpp b/ndb/src/mgmsrv/ConfigInfo.cpp
index 817943f5e51..668a0ed3529 100644
--- a/ndb/src/mgmsrv/ConfigInfo.cpp
+++ b/ndb/src/mgmsrv/ConfigInfo.cpp
@@ -2344,6 +2344,7 @@ ConfigInfo::ConfigInfo()
ndbout << "Edit file " << __FILE__ << "." << endl;
require(false);
}
+ delete section;
}
}