Fix another malloc/delete mismatch, and improve makefile

This commit is contained in:
2021-12-09 14:51:28 -05:00
parent d5cb25276b
commit 46f38b8360
2 changed files with 18 additions and 7 deletions

View File

@@ -107,7 +107,7 @@ char *StreamBuffer::get_overwrite(int64_t size, int64_t write_count_after) {
void StreamBuffer::clear() {
assert(owned_);
if (!fixed_size_) {
if (buf_lo_ != nullptr) delete buf_lo_;
if (buf_lo_ != nullptr) free(buf_lo_);
buf_lo_ = 0;
buf_hi_ = 0;
}