Fix another malloc/delete mismatch, and improve makefile
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user