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 2014/04/09 01:43:42 UTC

git commit: Fixed a call to delete where delete[] should have been used.

Repository: mesos
Updated Branches:
  refs/heads/master 79ac35626 -> 497186dd3


Fixed a call to delete where delete[] should have been used.


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

Branch: refs/heads/master
Commit: 497186dd376521cc8f4c9fa284dd912d7a1cb614
Parents: 79ac356
Author: Benjamin Mahler <bm...@twitter.com>
Authored: Tue Apr 8 16:43:32 2014 -0700
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Tue Apr 8 16:43:32 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/497186dd/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
index db5ae69..8eb3523 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
@@ -295,7 +295,7 @@ inline Try<std::string> mktemp(const std::string& path = "/tmp/XXXXXX")
   int fd = ::mkstemp(::strcpy(temp, path.c_str()));
 
   if (fd < 0) {
-    delete temp;
+    delete[] temp;
     return ErrnoError();
   }
 
@@ -305,7 +305,7 @@ inline Try<std::string> mktemp(const std::string& path = "/tmp/XXXXXX")
   os::close(fd);
 
   std::string result(temp);
-  delete temp;
+  delete[] temp;
   return result;
 }