Changeset e5324a in git


Ignore:
Timestamp:
May 21, 2012, 7:28:11 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
e73abe2246b5f27f16872412d2daae5888ef54f1
Parents:
3706b2ae2aa0d92dc9ed3838fc152aede808085e
Message:
fix: memory leaks in conversion
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipconv.cc

    r3706b2 re5324a  
    103103  ideal I=idInit(1,1);
    104104
    105   I->m[0]=(poly)data;
    106105  if (data!=NULL)
    107106  {
    108107    poly p=(poly)data;
     108    I->m[0]=p;
    109109    if (pGetComp(p)!=0) I->rank=pMaxComp(p);
    110110  }
     
    190190static void * iiIm2Bim(void *data)
    191191{
    192   return (void *)iv2bim((intvec*)data,coeffs_BIGINT);
     192  intvec *iv=(intvec*)data;
     193  void *r=(void *)iv2bim(iv,coeffs_BIGINT);
     194  delete iv;
     195  return r;
    193196}
    194197
    195198static void * iiBim2Im(void *data)
    196199{
    197   return (void *)bim2iv((bigintmat*)data);
     200  bigintmat *b=(bigintmat*)data;
     201  void *r=(void *)bim2iv(b);
     202  delete b;
     203  return r;
    198204}
    199205
Note: See TracChangeset for help on using the changeset viewer.