Commit 9f5cec76 authored by unknown's avatar unknown

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
parent d00a6cf4
...@@ -210,9 +210,13 @@ Configuration::Configuration() ...@@ -210,9 +210,13 @@ Configuration::Configuration()
m_config_retriever= 0; m_config_retriever= 0;
m_clusterConfig= 0; m_clusterConfig= 0;
m_clusterConfigIter= 0; m_clusterConfigIter= 0;
m_logLevel= 0;
} }
Configuration::~Configuration(){ Configuration::~Configuration(){
if (opt_connect_str)
free(_connectString);
if(_programName != NULL) if(_programName != NULL)
free(_programName); free(_programName);
...@@ -225,6 +229,10 @@ Configuration::~Configuration(){ ...@@ -225,6 +229,10 @@ Configuration::~Configuration(){
if (m_config_retriever) { if (m_config_retriever) {
delete m_config_retriever; delete m_config_retriever;
} }
if(m_logLevel) {
delete m_logLevel;
}
} }
void void
......
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