Commit 98947382 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2209] Comment about assert

parent b2964261
......@@ -29,6 +29,11 @@ ZoneTableSegmentLocal::ZoneTableSegmentLocal(const RRClass& rrclass) :
}
ZoneTableSegmentLocal::~ZoneTableSegmentLocal() {
// Explicitly clear the contained data, 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.
ZoneTable::destroy(mem_sgmt_, header_.getTable());
assert(mem_sgmt_.allMemoryDeallocated());
}
......
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