Bug 444579

Summary: kwatch-2.3.3-252.16 : undefined C++ cod
Product: [openSUSE] openSUSE 11.1 Reporter: David Binderman <dcb314>
Component: OtherAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
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-13 11:20:52 UTC
I just checked some of the source code in the Suse Linux factory package
kwatch-2.3.3-252.16 and I noticed the following

$ egrep "new|delete" ../BUILD/kwatch-2.3.3/kwatch/klogwidget.cpp | fgrep m_buf
    m_buf  = new char[m_cf.bufsize];
    delete m_buf;

Suggest replace

    delete m_buf;

with

    delete [] m_buf; m_buf = NULL;
Comment 1 Stephan Binner 2008-11-13 12:06:01 UTC

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