diff options
author | unknown <stewart@mysql.com> | 2006-06-08 02:31:58 +1000 |
---|---|---|
committer | unknown <stewart@mysql.com> | 2006-06-08 02:31:58 +1000 |
commit | 49ccf53e8eb8fbce7edb0172b11f4e4c1334ccc8 (patch) | |
tree | f8b4deec1d6203dc175bb8ba4aa6557f071b44dd /ndb | |
parent | d7b7d480b1a2245ccfbdfa0f661fbb0bdd913eaa (diff) | |
download | mariadb-git-49ccf53e8eb8fbce7edb0172b11f4e4c1334ccc8.tar.gz |
BUG#19318 valgrind: memory leak in ndb_mgmd
fix based on review
ndb/src/mgmsrv/ConfigInfo.cpp:
move delete to more appropriate places inside loop.
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/mgmsrv/ConfigInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ndb/src/mgmsrv/ConfigInfo.cpp b/ndb/src/mgmsrv/ConfigInfo.cpp index 1466ae2e0f5..2673aecf31b 100644 --- a/ndb/src/mgmsrv/ConfigInfo.cpp +++ b/ndb/src/mgmsrv/ConfigInfo.cpp @@ -2287,6 +2287,7 @@ ConfigInfo::ConfigInfo() // Replace section with modified section m_info.put(param._section, section, true); + delete section; if(param._type != ConfigInfo::CI_SECTION){ Properties * p; @@ -2344,7 +2345,6 @@ ConfigInfo::ConfigInfo() ndbout << "Edit file " << __FILE__ << "." << endl; require(false); } - delete section; } } |