Changeset a5b0b2 in git for kernel


Ignore:
Timestamp:
Nov 15, 2021, 11:46:07 AM (2 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
dafe4d8a022653d57687ae1012863f1df18b8016
Parents:
dd624b5d39b2f92a950c3b0672ddc0cb24c84992
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2021-11-15 11:46:07+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2021-11-15 11:48:25+01:00
Message:
fix: memory leak for LP in ksCreateSpoly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kspoly.cc

    rdd624b ra5b0b2  
    12731273    {
    12741274      // m2*a2*m22
    1275       a2 = tailRing->p_Procs->pp_Mult_mm(tailRing->p_Procs->pp_mm_Mult(a2, m2, tailRing), m22, tailRing);
     1275      poly tmp= tailRing->p_Procs->pp_mm_Mult(a2, m2, tailRing);
     1276      a2 = tailRing->p_Procs->pp_Mult_mm(tmp, m22, tailRing);
     1277      p_Delete(&tmp,tailRing);
    12761278    }
    12771279    else
     
    12901292  {
    12911293    // get m2*a2*m22 - m1*a1*m12
    1292     Pair->Tail_Minus_mm_Mult_qq(m1, tailRing->p_Procs->pp_Mult_mm(a1, m12, tailRing), l1, spNoether);
     1294    poly tmp=tailRing->p_Procs->pp_Mult_mm(a1, m12, tailRing);
     1295    Pair->Tail_Minus_mm_Mult_qq(m1, tmp, l1, spNoether);
     1296    p_Delete(&tmp,tailRing);
    12931297  }
    12941298  else
Note: See TracChangeset for help on using the changeset viewer.