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

This commit is contained in:
stewart@mysql.com 2006-04-06 21:59:20 +10:00
parent 45a3bb57d6
commit add2732f78

View File

@ -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;
}
}