Bug 443743

Summary: kdiff3-0.9.92-236.24: call to wrong C++ delete
Product: [openSUSE] openSUSE 11.1 Reporter: David Binderman <dcb314>
Component: KDE3Assignee: E-mail List <kde-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2008-11-11 12:59:39 UTC
I just checked some of the source code in the Suse Linux factory package
kdiff3-0.9.92-236.24 and I noticed the following

$ egrep "new|delete"   ../BUILD/kdiff3-0.9.92/src/fileaccess.cpp | fgrepbuf
         char* buf=new char[size];
            delete buf;

The delete line look wrong.  Suggest new code like

    delete [] buf;
    buf = NULL;
Comment 1 Lubos Lunak 2008-11-11 13:00:47 UTC

*** This bug has been marked as a duplicate of bug 442933 ***