Revert "Fix memory leak reported by Scott."

It leads to a double delete error.

This reverts commit 11397a2e82.
This commit is contained in:
Richard Kimberly Heck 2020-02-23 16:29:58 -05:00
parent 11397a2e82
commit 72c581ebdb

View File

@ -545,10 +545,8 @@ Buffer::~Buffer()
if (it == cloned_buffers.end()) {
// We will leak in this case, but it is safe to continue.
LATTEST(false);
} else {
delete(*it);
} else
cloned_buffers.erase(it);
}
delete d->clone_list_;
}
// FIXME Do we really need to do this right before we delete d?