trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject git commit: TS-1475: bad deallocator in LogSock
Date Wed, 05 Jun 2013 20:47:23 GMT
Updated Branches:
  refs/heads/master 615026faf -> 755ff9f4f


TS-1475: bad deallocator in LogSock


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/755ff9f4
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/755ff9f4
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/755ff9f4

Branch: refs/heads/master
Commit: 755ff9f4fa9fa90f77580e4b734789fcdf60629f
Parents: 615026f
Author: James Peach <jpeach@apache.org>
Authored: Wed Jun 5 13:46:18 2013 -0700
Committer: James Peach <jpeach@apache.org>
Committed: Wed Jun 5 13:46:18 2013 -0700

----------------------------------------------------------------------
 proxy/logging/LogSock.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/755ff9f4/proxy/logging/LogSock.cc
----------------------------------------------------------------------
diff --git a/proxy/logging/LogSock.cc b/proxy/logging/LogSock.cc
index 6f84e1c..52f97f8 100644
--- a/proxy/logging/LogSock.cc
+++ b/proxy/logging/LogSock.cc
@@ -553,7 +553,7 @@ LogSock::read_alloc(int cid, int *size)
   ink_assert(data != NULL);
 
   if ((*size = read_body(ct[cid].sd, data, header.msg_bytes)) < 0) {
-    delete data;
+    delete[] data;
     data = NULL;
   }
 


Mime
View raw message