You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2016/07/13 20:24:31 UTC

[4/7] mesos git commit: Fixed mismatching `delete`.

Fixed mismatching `delete`.

`data` is initialized with `new char[size]`.
It should be `delete`d with `delete[]`.

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


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

Branch: refs/heads/master
Commit: 0c8ee37c245ad440e1d3c41528ab1136a38b6cea
Parents: 5dfc00e
Author: Michael Park <mc...@gmail.com>
Authored: Wed Jul 13 12:03:19 2016 -0700
Committer: Joseph Wu <jo...@apache.org>
Committed: Wed Jul 13 13:21:07 2016 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/src/tests/test_linkee.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/0c8ee37c/3rdparty/libprocess/src/tests/test_linkee.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/tests/test_linkee.cpp b/3rdparty/libprocess/src/tests/test_linkee.cpp
index b7bd64c..1f6cfaf 100644
--- a/3rdparty/libprocess/src/tests/test_linkee.cpp
+++ b/3rdparty/libprocess/src/tests/test_linkee.cpp
@@ -63,7 +63,7 @@ void on_accept(const Future<Socket>& incoming)
 
     incoming->recv(data, size)
       .then([data](const size_t size) -> Future<Nothing> {
-        delete data;
+        delete[] data;
 
         // If there was any content at all, assume this is a message
         // telling the linkee to terminate.