Index: net/tools/flip_server/simple_buffer.cc |
diff --git a/net/tools/flip_server/simple_buffer.cc b/net/tools/flip_server/simple_buffer.cc |
index 569e5050f91f89e9b5f436b3172581ffab4adfda..d94153b29ec9000d1f1caedf9ec46fccaf85175b 100644 |
--- a/net/tools/flip_server/simple_buffer.cc |
+++ b/net/tools/flip_server/simple_buffer.cc |
@@ -37,6 +37,11 @@ SimpleBuffer::SimpleBuffer(int size) |
storage_ = new char[size]; |
} |
+SimpleBuffer::~SimpleBuffer() { |
+ delete[] storage_; |
+} |
+ |
+ |
//////////////////////////////////////////////////////////////////////////////// |
int SimpleBuffer::ReadableBytes() const { |
@@ -201,4 +206,3 @@ inline void SimpleBuffer::AdvanceWritablePtr(int amount_to_advance) { |
} |
} // namespace net |
- |