Commit 9f5cec76 authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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