Commit 5257dded 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 d71a03a0
......@@ -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
......
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