summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <stewart@mysql.com>2006-04-25 10:04:46 -0700
committerunknown <stewart@mysql.com>2006-04-25 10:04:46 -0700
commit9f5cec76223311e12715936163b92d756ccf80a8 (patch)
tree0ab93ca2f93b4c6d2f794ae84a70f38c8c8377f5 /ndb
parentd00a6cf46c63576abf3d0682af752ab53e3876fd (diff)
downloadmariadb-git-9f5cec76223311e12715936163b92d756ccf80a8.tar.gz
BUG#19340 small leak in ndbd
small cleanup fixes in kernel/vm/Configuration ndb/src/kernel/vm/Configuration.cpp: clean up m_logLevel free the connectstring if we allocated one
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/kernel/vm/Configuration.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ndb/src/kernel/vm/Configuration.cpp b/ndb/src/kernel/vm/Configuration.cpp
index f8c79a53fb7..425907e24c6 100644
--- a/ndb/src/kernel/vm/Configuration.cpp
+++ b/ndb/src/kernel/vm/Configuration.cpp
@@ -210,9 +210,13 @@ Configuration::Configuration()
m_config_retriever= 0;
m_clusterConfig= 0;
m_clusterConfigIter= 0;
+ m_logLevel= 0;
}
Configuration::~Configuration(){
+ if (opt_connect_str)
+ free(_connectString);
+
if(_programName != NULL)
free(_programName);
@@ -225,6 +229,10 @@ Configuration::~Configuration(){
if (m_config_retriever) {
delete m_config_retriever;
}
+
+ if(m_logLevel) {
+ delete m_logLevel;
+ }
}
void