Fix some malloc/delete mismatches
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user