Track malloc size with a header for SHOW_MEMORY
This commit is contained in:
@@ -149,7 +149,7 @@ private:
|
||||
setMaxVersion(level, v);
|
||||
}
|
||||
|
||||
void destroy() { free(this); }
|
||||
void destroy() { safe_free(this); }
|
||||
|
||||
private:
|
||||
int getNodeSize() const {
|
||||
@@ -655,7 +655,7 @@ ConflictSet::ConflictSet(int64_t oldestVersion)
|
||||
ConflictSet::~ConflictSet() {
|
||||
if (impl) {
|
||||
impl->~Impl();
|
||||
free(impl);
|
||||
safe_free(impl);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user