Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
b2964261
Commit
b2964261
authored
Oct 29, 2012
by
Michal 'vorner' Vaner
Browse files
[2209] Remove unused memory segment
parent
fb8ce6a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/client_list.cc
View file @
b2964261
...
...
@@ -72,21 +72,10 @@ ConfigurableClientList::DataSourceInfo::getCacheClient() const {
ConfigurableClientList
::
ConfigurableClientList
(
const
RRClass
&
rrclass
)
:
rrclass_
(
rrclass
),
mem_sgmt_
(
new
util
::
MemorySegmentLocal
),
configuration_
(
new
isc
::
data
::
ListElement
),
allow_cache_
(
false
)
{}
ConfigurableClientList
::~
ConfigurableClientList
()
{
// Explicitly clear the contained data source clients, and check memory
// leak. assert() (with abort on failure) may be too harsh, but
// it's probably better to find more leaks initially. Once it's stabilized
// we should probably revisit it.
data_sources_
.
clear
();
assert
(
mem_sgmt_
->
allMemoryDeallocated
());
}
void
ConfigurableClientList
::
configure
(
const
ConstElementPtr
&
config
,
bool
allow_cache
)
...
...
src/lib/datasrc/client_list.h
View file @
b2964261
...
...
@@ -222,9 +222,6 @@ public:
/// \param rrclass For which class the list should work.
ConfigurableClientList
(
const
isc
::
dns
::
RRClass
&
rrclass
);
/// \brief Destructor
virtual
~
ConfigurableClientList
();
/// \brief Exception thrown when there's an error in configuration.
class
ConfigurationError
:
public
Exception
{
public:
...
...
@@ -408,12 +405,6 @@ private:
bool
want_exact_match
,
bool
want_finder
)
const
;
const
isc
::
dns
::
RRClass
rrclass_
;
/// \brief Memory segment for in-memory cache.
///
/// Note that this must be placed before data_sources_ so it won't be
/// destroyed before the built objects in the destructor.
boost
::
scoped_ptr
<
util
::
MemorySegment
>
mem_sgmt_
;
/// \brief Currently active configuration.
isc
::
data
::
ConstElementPtr
configuration_
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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