Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: test/cctest/test-sockets.cc

Issue 42331: Fixed memory leaks in socket implementation (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform-win32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « src/platform-win32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698