Changeset a72699 in git for kernel/GBEngine/kutil.cc


Ignore:
Timestamp:
Nov 29, 2021, 1:46:57 PM (2 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
b9ded9215c1f31f52c684d1560787b9c150d904e
Parents:
0c3140eb2ef06439f93290caf16ccde4beaaf57c
Message:
fix: memory leak for LP: initenterpairsShift
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    r0c3140 ra72699  
    1306513065        {
    1306613066          poly hh = pLPCopyAndShiftLM(h, i);
     13067          BOOLEAN discard=TRUE;
    1306713068          for (j=0; j<=k; j++)
    1306813069          {
     
    1307013071            int s_lastVblock = pmLastVblock(s);
    1307113072            if (i < s_lastVblock || (pGetComp(s) > 0 && i == s_lastVblock)) // in the module case, product criterion does not hold (note: comp h is always zero here)
    13072               enterOnePairWithoutShifts(j, hh, s, ecart, isFromQ, strat, atR, s_lastVblock, i);
     13073              discard=enterOnePairWithoutShifts(j, hh, s, ecart, isFromQ, strat, atR, s_lastVblock, i)
     13074                && discard;
    1307313075#ifdef HAVE_RINGS
    1307413076            else if (rField_is_Ring(currRing))
     
    1308613088          }
    1308713089          if (i < h_lastVblock) // in the module case, product criterion does not hold (note: comp h is always zero here)
    13088             enterOnePairWithoutShifts(-1, hh, h, ecart, isFromQ, strat, atR, h_lastVblock, i);
     13090            discard=enterOnePairWithoutShifts(-1, hh, h, ecart, isFromQ, strat, atR, h_lastVblock, i)
     13091              && discard;
    1308913092#ifdef HAVE_RINGS
    1309013093          else if (rField_is_Ring(currRing))
     
    1310013103          }
    1310113104#endif
     13105          if (discard) pLmDelete(hh);
    1310213106        }
    1310313107      }
Note: See TracChangeset for help on using the changeset viewer.