Bugzilla – Bug 443728
kdeedu3-3.5.10-1.27: 3 * call to wrong C++ delete
Last modified: 2008-11-11 12:52:04 UTC
I just checked some of the source code in the Suse Linux factory package kdeedu3-3.5.10-1.27 and I noticed the following $ egrep "new|delete" ../BUILD/kdeedu-3.5.10/kstars/kstars/indi/apogee/reb1100.cpp temp = new char[request.length()]; delete temp; temp = new char[request.length()]; delete temp; temp3 = new char[buf.length()]; delete temp3; The three delete lines look wrong. Suggest new code like delete [] temp; temp = NULL; in each case.
*** This bug has been marked as a duplicate of bug 442933 ***