Bug 445427

Summary: pgcalc-2.2-263.16: ten * undefined C++ code
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-15 17:40:06 UTC
I just checked some of the source code in the Suse Linux factory package
pgcalc-2.2-263.16 and I noticed the following

$ egrep "new|delete" ../BUILD/pgcalc2-2.2-6/src/amatrix.cpp | fgrepCells
   Cells = new CComplex[ Rows * Cols ];
   Cells = new CComplex[ Rows * Cols ];
      Cells = new CComplex[ Rows * Cols ];
         delete Cells;
      Cells = new CComplex[ ACol * ARow ];
         delete Cells;
      delete Cells;
      delete Cells;
      delete Cells;
      delete Cells;
      delete Cells;
      delete Cells;
      delete Cells;
      delete Cells;
   Cells = new CComplex[ Cols * Rows ];

Suggest replace all ten deletes with

  delete [] Cells; Cells = NULL;
Comment 1 Stephan Binner 2008-11-15 18:14:56 UTC

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