From: Andrew Nelless Date: Sun, 12 Oct 2014 12:12:57 +0000 (+0100) Subject: Memory allocating with new[] should be freed with delete[] X-Git-Tag: rec-3.7.0-rc1~189^2~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1812%2Fhead;p=thirdparty%2Fpdns.git Memory allocating with new[] should be freed with delete[] --- diff --git a/pdns/speedtest.cc b/pdns/speedtest.cc index 6fad022d99..485be5cab1 100644 --- a/pdns/speedtest.cc +++ b/pdns/speedtest.cc @@ -391,7 +391,7 @@ struct StackMallocTest void operator()() const { char *buffer= new char[200000]; - delete buffer; + delete[] buffer; } };