Changeset babf57a in git


Ignore:
Timestamp:
Sep 11, 2013, 3:19:19 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4188d308699580d975efd0f6cca8dcb41c396f70')
Children:
d83c0bc579fb38d2539c9c3b55cba1c04ccf3ff2
Parents:
152ec74edbee09b172a256b0a6b596d4c76046eb
git-author:
Martin Lee <martinlee84@web.de>2013-09-11 15:19:19+02:00
git-committer:
Martin Lee <martinlee84@web.de>2013-09-11 15:31:05+02:00
Message:
fix: memory leaks
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_gcd_smallp.cc

    r152ec74 rbabf57a  
    17211721  long rk= nmod_mat_rref (FLINTN);
    17221722
     1723  delete N;
    17231724  N= convertNmod_mat_t2FacCFMatrix (FLINTN);
    1724   delete N;
    17251725  nmod_mat_clear (FLINTN);
    17261726#else
     
    17721772  long rk= gauss (*NTLN);
    17731773
     1774  delete N;
    17741775  N= convertNTLmat_zz_pE2FacCFMatrix (*NTLN, alpha);
     1776
     1777  delete NTLN;
    17751778
    17761779  M= (*N) (1, M.rows(), 1, M.columns());
     
    18171820#ifdef HAVE_FLINT
    18181821    nmod_mat_clear (FLINTN);
     1822#else
     1823    delete NTLN;
    18191824#endif
    18201825    return CFArray();
     
    18561861  mat_zz_pE *NTLN= convertFacCFMatrix2NTLmat_zz_pE(*N);
    18571862  long rk= gauss (*NTLN);
     1863
     1864  delete N;
    18581865  if (rk != M.columns())
    18591866  {
    1860     delete N;
     1867    delete NTLN;
    18611868    return CFArray();
    18621869  }
    18631870  N= convertNTLmat_zz_pE2FacCFMatrix (*NTLN, alpha);
     1871
     1872  delete NTLN;
    18641873
    18651874  CFArray A= readOffSolution (*N, rk);
Note: See TracChangeset for help on using the changeset viewer.