Commit add2732f authored by stewart@mysql.com's avatar stewart@mysql.com
Browse files

BUG#18833 valgrind: Mismatched free()/delete/delete[] in SimBlockList

parent 45a3bb57
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -111,8 +111,12 @@ SimBlockList::unload(){
  if(theList != 0){
    for(int i = 0; i<noOfBlocks; i++){
      if(theList[i] != 0){
#ifdef VM_TRACE
	theList[i]->~SimulatedBlock();
	free(theList[i]);
#else
        delete(theList[i]);
#endif
	theList[i] = 0;
      }
    }