Ignore:
Timestamp:
Nov 5, 2009, 6:14:08 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
fc420f
Parents:
543ce4
Message:

LEAKFIX: ReturnFullMatrixForSymmetric() and InverseMatrix() have Malloc()s, in code was delete(), not Free()

  • valgrind showed the "mismatch free/delete" and is fixed. (mostly concerned functions in molecule_geometry.cpp and analysis_correlation.cpp)
  • LEAKFIX: logger and errorLogger instances were not free'd, this is done.

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecule.cpp

    r543ce4 r4ef101  
    155155  Vector Orthovector1, Orthovector2;  // temporary vectors in coordination construction
    156156  Vector InBondvector;    // vector in direction of *Bond
    157   double *matrix;
     157  double *matrix = NULL;
    158158  bond *Binder = NULL;
    159159
     
    398398      break;
    399399  }
     400  Free(&matrix);
    400401
    401402//  Log() << Verbose(3) << "End of AddHydrogenReplacementAtom." << endl;
Note: See TracChangeset for help on using the changeset viewer.