Changeset af6ec6 in git


Ignore:
Timestamp:
Mar 14, 2017, 4:28:46 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
eb793a5c2740464a528b3b59ff11e841245a19a5
Parents:
17c3150d26605e770ae78cd36b6201409f4f1ab3
Message:
fix: memory leak in rComposeRing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r17c315 raf6ec6  
    23002300  // 0: string: integer
    23012301  // no further entries --> Z
    2302   mpz_ptr modBase = NULL;
     2302  mpz_t modBase;
    23032303  unsigned int modExponent = 1;
    23042304
    2305   modBase = (mpz_ptr) omAlloc(sizeof(mpz_t));
    23062305  if (L->nr == 0)
    23072306  {
     
    23842383    R->cf=nInitChar(n_Zn,(void*) &info);
    23852384  }
     2385  mpz_clear(modBase);
    23862386}
    23872387#endif
     
    55185518ring rInit(leftv pn, leftv rv, leftv ord)
    55195519{
    5520 #ifdef HAVE_RINGS
    5521   //unsigned int ringtype = 0;
    5522   mpz_ptr modBase = NULL;
    5523   unsigned int modExponent = 1;
    5524 #endif
    55255520  int float_len=0;
    55265521  int float_len2=0;
     
    56915686    // TODO: change to use coeffs_BIGINT!?
    56925687    mpz_t modBase;
     5688    unsigned int modExponent = 1;
    56935689    mpz_init_set_si(modBase, 0);
    56945690    if (pn->next!=NULL)
Note: See TracChangeset for help on using the changeset viewer.