Index: test/cctest/test-sockets.cc |
=================================================================== |
--- test/cctest/test-sockets.cc (revision 1534) |
+++ test/cctest/test-sockets.cc (working copy) |
@@ -22,6 +22,8 @@ |
// Close both sockets. |
delete client_; |
delete server_; |
+ delete listening_; |
+ delete[] data_; |
} |
void Run(); |
@@ -127,6 +129,7 @@ |
medium_data[i] = i % 256; |
} |
SendAndReceive(medium_data, kBufferSizeMedium); |
+ delete[] medium_data; |
// Send and receive even more data. |
static const int kBufferSizeLarge = 1000000; |
@@ -135,6 +138,7 @@ |
large_data[i] = i % 256; |
} |
SendAndReceive(large_data, kBufferSizeLarge); |
+ delete[] large_data; |
} |