Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
518100f0
Commit
518100f0
authored
Apr 24, 2006
by
stewart@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#19318 valgrind: memory leak in ndb_mgmd
clean up after ConfigValuesFactory
parent
5ec0af4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
ndb/include/util/ConfigValues.hpp
ndb/include/util/ConfigValues.hpp
+1
-0
ndb/src/common/util/ConfigValues.cpp
ndb/src/common/util/ConfigValues.cpp
+7
-1
No files found.
ndb/include/util/ConfigValues.hpp
View file @
518100f0
...
...
@@ -96,6 +96,7 @@ public:
public:
ConfigValuesFactory
(
Uint32
keys
=
50
,
Uint32
data
=
10
);
// Initial
ConfigValuesFactory
(
ConfigValues
*
m_cfg
);
//
~
ConfigValuesFactory
();
ConfigValues
*
m_cfg
;
ConfigValues
*
getConfigValues
();
...
...
ndb/src/common/util/ConfigValues.cpp
View file @
518100f0
...
...
@@ -294,6 +294,12 @@ ConfigValuesFactory::ConfigValuesFactory(ConfigValues * cfg){
}
}
ConfigValuesFactory
::~
ConfigValuesFactory
()
{
if
(
m_cfg
)
free
(
m_cfg
);
}
ConfigValues
*
ConfigValuesFactory
::
create
(
Uint32
keys
,
Uint32
data
){
Uint32
sz
=
sizeof
(
ConfigValues
);
...
...
@@ -528,7 +534,7 @@ ConfigValuesFactory::extractCurrentSection(const ConfigValues::ConstIterator & c
}
}
ConfigValues
*
ret
=
fac
->
m_cfg
;
ConfigValues
*
ret
=
fac
->
getConfigValues
()
;
delete
fac
;
return
ret
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment