From add2732f78dc43e9f3a507af641b43526139767d Mon Sep 17 00:00:00 2001 From: "stewart@mysql.com" <> Date: Thu, 6 Apr 2006 21:59:20 +1000 Subject: [PATCH] BUG#18833 valgrind: Mismatched free()/delete/delete[] in SimBlockList --- ndb/src/kernel/SimBlockList.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ndb/src/kernel/SimBlockList.cpp b/ndb/src/kernel/SimBlockList.cpp index 6029fc7e225..271d515dc92 100644 --- a/ndb/src/kernel/SimBlockList.cpp +++ b/ndb/src/kernel/SimBlockList.cpp @@ -111,8 +111,12 @@ SimBlockList::unload(){ if(theList != 0){ for(int i = 0; i~SimulatedBlock(); free(theList[i]); +#else + delete(theList[i]); +#endif theList[i] = 0; } }