Changeset 7353f55 in git


Ignore:
Timestamp:
Sep 11, 2013, 1:24:45 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
152ec74edbee09b172a256b0a6b596d4c76046eb
Parents:
49fb43b3f7752b3a63be8c8108db0a25847d8ea6
Message:
fix: some memory holes in gaussianElimFp/solveSystemFp
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_gcd_smallp.cc

    r49fb43b r7353f55  
    737737        if (((degree (ppCoF,1)+degree (ppH,1) == bound1) &&
    738738             (degree (ppCoG,1)+degree (ppH,1) == bound2) &&
    739              terminationTest (ppA, ppB, ppCoF, ppCoG, ppH)) || 
     739             terminationTest (ppA, ppB, ppCoF, ppCoG, ppH)) ||
    740740             (fdivides (ppH, ppA, ppCoF) && fdivides (ppH, ppB, ppCoG)))
    741741        {
     
    17221722
    17231723  N= convertNmod_mat_t2FacCFMatrix (FLINTN);
     1724  delete N;
    17241725  nmod_mat_clear (FLINTN);
    17251726#else
     
    17311732  }
    17321733  mat_zz_p *NTLN= convertFacCFMatrix2NTLmat_zz_p(*N);
     1734  delete N;
    17331735  long rk= gauss (*NTLN);
    17341736
    17351737  N= convertNTLmat_zz_p2FacCFMatrix (*NTLN);
     1738  delete NTLN;
    17361739#endif
    17371740
     
    18091812  long rk= gauss (*NTLN);
    18101813#endif
     1814  delete N;
    18111815  if (rk != M.columns())
    18121816  {
     
    18141818    nmod_mat_clear (FLINTN);
    18151819#endif
    1816     delete N;
    18171820    return CFArray();
    18181821  }
     
    18221825#else
    18231826  N= convertNTLmat_zz_p2FacCFMatrix (*NTLN);
     1827  delete NTLN;
    18241828#endif
    18251829  CFArray A= readOffSolution (*N, rk);
Note: See TracChangeset for help on using the changeset viewer.