Silence a valgrind complaint by matching "delete[]" with "new[]".
authorDavid Reiss <dreiss@apache.org>
Mon, 28 Apr 2008 02:42:28 +0000 (02:42 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 28 Apr 2008 02:42:28 +0000 (02:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665666 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/transport/TFileTransport.cpp

index 6879079..6c4920f 100644 (file)
@@ -150,7 +150,7 @@ TFileTransport::~TFileTransport() {
   }
 
   if (readBuff_) {
-    delete readBuff_;
+    delete[] readBuff_;
     readBuff_ = NULL;
   }