Ignore:
Timestamp:
Feb 23, 2007 6:36:13 PM (13 years ago)
Author:
pbelotti
Message:

fixed some memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Couenne/Couenne/src/simplify/simplifiers.cpp

    r293 r357  
    11/*
    2  * Name:    simplifiers.C
     2 * Name:    simplifiers.cpp
    33 * Author:  Pietro Belotti
    44 * Purpose: simplifiers for main operators (+,*,-)
     
    9595
    9696  nargs_ = j;
    97   /*
    98   printf ("////////////////////////////// nargs=%d, %d, %d\n", nargs_,
    9997
    100           ((fabs (c - null_element) < COUENNE_EPS) || !one_fun),
    101           ((nargs_ == 1) && ((fabs (c - null_element) > COUENNE_EPS) || !one_fun)));
    102   */
    103   // since C++ has no corresponding to realloc(), copy arglist_ to a
    104   // smaller array and delete it
    105   /*
    106   expression ** new_arglist = new expression * [nargs_];
    107 
    108   for (i=nargs_; i--;)
    109     new_arglist [i] = arglist_ [i];
    110 
    111   delete [] arglist_;
    112 
    113   arglist_ = new_arglist;
    114   */
    11598  // only say shrinking simplified arg list if there is just the
    11699  // constant
Note: See TracChangeset for help on using the changeset viewer.