Fix memory leak reported by Scott.

This commit is contained in:
Richard Kimberly Heck 2020-02-23 15:54:13 -05:00
parent 86f95062bd
commit 11397a2e82

View File

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