From: David Reiss Date: Mon, 28 Apr 2008 02:42:28 +0000 (+0000) Subject: Silence a valgrind complaint by matching "delete[]" with "new[]". X-Git-Tag: 0.2.0~806 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=bd3b168e633cedf903aebf106651dbccf7423089;p=common%2Fthrift.git Silence a valgrind complaint by matching "delete[]" with "new[]". git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665666 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/transport/TFileTransport.cpp b/lib/cpp/src/transport/TFileTransport.cpp index 68790798..6c4920f8 100644 --- a/lib/cpp/src/transport/TFileTransport.cpp +++ b/lib/cpp/src/transport/TFileTransport.cpp @@ -150,7 +150,7 @@ TFileTransport::~TFileTransport() { } if (readBuff_) { - delete readBuff_; + delete[] readBuff_; readBuff_ = NULL; }