Changeset 588f16 in git for factory


Ignore:
Timestamp:
Nov 24, 2017, 10:48:31 AM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '854dc24078c9c998b9967f75c5e6fbe0e43b963e')
Children:
2b1df837dc4d9d4db39ac4f340897664fa56e6cf
Parents:
b554325e6721e4e1ff60d13ded139ee6d0e7c262
Message:
fix: memory leak in QGCD in cfGcdAlgExt.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cfGcdAlgExt.cc

    rb554325 r588f16  
    820820      setReduce(a,true);
    821821      if (off_rational) Off(SW_RATIONAL); else On(SW_RATIONAL);
     822      delete[] other;
     823      delete[] bound;
    822824      return gcdcfcg;
    823825    }
     
    867869            TIMING_END_AND_PRINT (alg_termination,
    868870                                 "time for successful termination test in alg gcd: ")
     871            delete[] other;
     872            delete[] bound;
    869873            return tmp*gcdcfcg;
    870874          }
     
    881885        TIMING_END_AND_PRINT (alg_termination,
    882886                            "time for successful termination test in alg gcd: ")
     887        delete[] other;
     888        delete[] bound;
    883889        return tmp*gcdcfcg;
    884890      }
     
    899905  // hopefully, we never reach this point
    900906  setReduce(a,true);
     907  delete[] other;
     908  delete[] bound;
    901909  Off( SW_USE_QGCD );
    902910  D = gcdcfcg*gcd( f, g );
Note: See TracChangeset for help on using the changeset viewer.