You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2016/05/19 17:22:49 UTC

mesos git commit: Fixed a mismatched 'delete'.

Repository: mesos
Updated Branches:
  refs/heads/master 3ec2aa17f -> 5b9552a29


Fixed a mismatched 'delete'.

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


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

Branch: refs/heads/master
Commit: 5b9552a299bf3a5d220783e059063f2940e04908
Parents: 3ec2aa1
Author: Jan Schlicht <ja...@mesosphere.io>
Authored: Thu May 19 10:21:40 2016 -0700
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Thu May 19 10:21:48 2016 -0700

----------------------------------------------------------------------
 3rdparty/stout/include/stout/os/read.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/5b9552a2/3rdparty/stout/include/stout/os/read.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/os/read.hpp b/3rdparty/stout/include/stout/os/read.hpp
index c39140f..77ad34a 100644
--- a/3rdparty/stout/include/stout/os/read.hpp
+++ b/3rdparty/stout/include/stout/os/read.hpp
@@ -125,7 +125,7 @@ inline Try<std::string> read(const std::string& path)
       // NOTE: ferror() will not modify errno if the stream
       // is valid, which is the case here since it is open.
       ErrnoError error;
-      delete buffer;
+      delete[] buffer;
       ::fclose(file);
       return error;
     }
@@ -139,7 +139,7 @@ inline Try<std::string> read(const std::string& path)
   };
 
   ::fclose(file);
-  delete buffer;
+  delete[] buffer;
   return result;
 }
 #endif // __sun || __WINDOWS__