From 2be5ea6f7f0392b3c48fba47bd5be43948f6961c Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Thu, 3 Jul 2008 15:49:48 +0000 Subject: QPID-1160 - Use array-style delete for allocated array git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673718 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/managementgen/templates/Class.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/managementgen/templates/Class.cpp') diff --git a/cpp/managementgen/templates/Class.cpp b/cpp/managementgen/templates/Class.cpp index 1ea1da5090..100e306fe0 100644 --- a/cpp/managementgen/templates/Class.cpp +++ b/cpp/managementgen/templates/Class.cpp @@ -56,7 +56,7 @@ uint8_t /*MGEN:Class.NameCap*/::md5Sum[16] = for (int idx = 0; idx < maxThreads; idx++) if (perThreadStatsArray[idx] != 0) delete perThreadStatsArray[idx]; - delete perThreadStatsArray; + delete[] perThreadStatsArray; /*MGEN:ENDIF*/ } -- cgit v1.2.1