Changeset 751f7e in git


Ignore:
Timestamp:
Mar 8, 2024, 9:43:30 AM (2 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'b9f50b373314e74e83c7c060a651dd2913e1f033')
Children:
993ed849af7fcd0f2e32045edd48d233bb303c7f
Parents:
9b100cf2c033af852a72272e1eeb8a3a17aa4a86
Message:
fix: double free fromQ
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/walk.cc

    r9b100cf r751f7e  
    121121  if (Q!=NULL) i=((IDELEMS(Q)+(setmaxTinc-1))/setmaxTinc)*setmaxTinc;
    122122  else i=setmaxT;
     123  if (i==0) i=setmaxT;
    123124
    124125  strat->ecartS=initec(i);
  • kernel/GBEngine/kstd1.cc

    r9b100cf r751f7e  
    35203520      if(strat->fromQ[j]) pDelete(&strat->Shdl->m[j]);
    35213521    }
    3522     omFreeSize((ADDRESS)strat->fromQ,IDELEMS(strat->Shdl)*sizeof(int));
     3522    omFree((ADDRESS)strat->fromQ);
     3523    strat->fromQ=NULL;
    35233524  }
    35243525//  if (TEST_OPT_PROT)
  • kernel/GBEngine/kstd2.cc

    r9b100cf r751f7e  
    40244024  omfree(strat->S_2_R);
    40254025  omfree(strat->fromQ);
     4026  strat->fromQ=NULL;
    40264027  idDelete(&strat->Shdl);
    40274028  SI_RESTORE_OPT1(save1);
     
    40984099  omfree(strat->S_2_R);
    40994100  omfree(strat->fromQ);
     4101  strat->fromQ=NULL;
    41004102  idDelete(&strat->Shdl);
    41014103  SI_RESTORE_OPT1(save1);
     
    41834185  omfree(strat->S_2_R);
    41844186  omfree(strat->fromQ);
     4187  strat->fromQ=NULL;
    41854188  idDelete(&strat->Shdl);
    41864189  SI_RESTORE_OPT1(save1);
     
    42634266  omfree(strat->S_2_R);
    42644267  omfree(strat->fromQ);
     4268  strat->fromQ=NULL;
    42654269  idDelete(&strat->Shdl);
    42664270  SI_RESTORE_OPT1(save1);
Note: See TracChangeset for help on using the changeset viewer.