Fix some malloc/delete mismatches

This commit is contained in:
2021-12-08 17:35:24 -05:00
parent 9ebba34061
commit 2e6a3ab74e
3 changed files with 48 additions and 43 deletions

View File

@@ -31,7 +31,7 @@ StreamBuffer::StreamBuffer(const char *s, int64_t size) {
}
StreamBuffer::~StreamBuffer() {
if (owned_ && (buf_lo_ != 0)) delete buf_lo_;
if (owned_ && (buf_lo_ != 0)) free(buf_lo_);
}
int64_t StreamBuffer::total_reads() const {