You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ti...@apache.org on 2015/04/01 15:49:04 UTC

mesos git commit: Fixed Alloc/Dealloc mismatch in OsSendfileTest.sendfile.

Repository: mesos
Updated Branches:
  refs/heads/master 95499fd9b -> 46c722809


Fixed Alloc/Dealloc mismatch in OsSendfileTest.sendfile.

Review: https://reviews.apache.org/r/32403


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/46c72280
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/46c72280
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/46c72280

Branch: refs/heads/master
Commit: 46c72280991c6986dad5fc05ce3bac32204dab06
Parents: 95499fd
Author: Joerg Schad <jo...@mesosphere.io>
Authored: Wed Apr 1 15:44:15 2015 +0200
Committer: Till Toenshoff <to...@me.com>
Committed: Wed Apr 1 15:44:16 2015 +0200

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/tests/os/sendfile_tests.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/46c72280/3rdparty/libprocess/3rdparty/stout/tests/os/sendfile_tests.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/tests/os/sendfile_tests.cpp b/3rdparty/libprocess/3rdparty/stout/tests/os/sendfile_tests.cpp
index 2af4dca..f2386d5 100644
--- a/3rdparty/libprocess/3rdparty/stout/tests/os/sendfile_tests.cpp
+++ b/3rdparty/libprocess/3rdparty/stout/tests/os/sendfile_tests.cpp
@@ -54,7 +54,7 @@ TEST_F(OsSendfileTest, sendfile)
   ASSERT_EQ(LOREM_IPSUM.size(), read(s[1], buffer, LOREM_IPSUM.size()));
   ASSERT_EQ(LOREM_IPSUM, string(buffer, LOREM_IPSUM.size()));
   ASSERT_SOME(os::close(fd.get()));
-  delete buffer;
+  delete[] buffer;
 
   // Now test with a closed socket, the SIGPIPE should be suppressed!
   fd = os::open(filename, O_RDONLY | O_CLOEXEC);