https://bugzilla.novell.com/show_bug.cgi?id=442857 Summary: bonnie++-1.02-468.7: call to wrong C++ delete Product: openSUSE 11.1 Version: Factory Platform: All OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just checked some of the source code in the Suse Linux factory package bonnie++-1.02-468.7 and I noticed the following $ fgrep new ../BUILD/bonnie++-1.02/bonnie++.cpp { delete m_buf; m_buf = new char[size]; m_chunk_size = size; } name = new char[strlen(path) + 15]; , m_buf(new char[m_chunk_size]) $ fgrep delete ../BUILD/bonnie++-1.02/bonnie++.cpp { delete m_buf; m_buf = new char[size]; m_chunk_size = size; } ~CGlobalItems() { delete name; delete m_buf; } delete name; Someone's got confused between ordinary delete and array delete. new match delete and new [] matches delete []. The results of the fgrep delete would be better as $ fgrep delete ../BUILD/bonnie++-1.02/bonnie++.cpp { delete [] m_buf; m_buf = new char[size]; m_chunk_size = size; } ~CGlobalItems() { delete [] name; delete [] m_buf; } delete [] name; -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.