Bugzilla – Bug 443720
k3b-1.0.5-48.9: call to wrong C++ delete
Last modified: 2008-11-11 12:52:13 UTC
I just checked some of the source code in the Suse Linux factory package k3b-1.0.5-48.9 and I noticed the following $ egrep "new|delete" egrep "new|delete" ../BUILD/k3b-1.0.5/libk3bdevice/k3bhalconnection.cpp | fgrep a char** a = new char*[s.count()]; a[i] = new char[s[i].length()+1]; delete [] a[i]; delete a; The second call to delete seems to be wrong. Suggest new code delete [] a; a = NULL;
*** This bug has been marked as a duplicate of bug 442933 ***