Changeset 2a2ba4 in git


Ignore:
Timestamp:
Oct 26, 2013, 3:49:03 PM (9 years ago)
Author:
Yue Ren <ren@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
54fc4e179eda7dd2b01fd41d794b02d31d96ae6a
Parents:
638c230a7830a70d265a617a0f2f2fa0505f2ec0
git-author:
Yue Ren <ren@mathematik.uni-kl.de>2013-10-26 15:49:03+02:00
git-committer:
Yue Ren <ren@mathematik.uni-kl.de>2014-07-21 20:05:13+02:00
Message:
fix: memory leak while calling gcd with a term and a non-term poly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/clapsing.cc

    r638c230 r2a2ba4  
    5757  assume(g!=NULL);
    5858
    59   if(pNext(f)==NULL)
     59  if(pNext(f)==NULL && pNext(g)==NULL)
    6060  {
    6161    poly p=p_One(r);
    62     if (pNext(g)==NULL)
    63     {
    64       for(int i=rVar(r);i>0;i--)
    65         p_SetExp(p,i,si_min(p_GetExp(f,i,r),p_GetExp(g,i,r)),r);
    66       p_Setm(p,r);
    67       return p;
    68     }
     62    for(int i=rVar(r);i>0;i--)
     63      p_SetExp(p,i,si_min(p_GetExp(f,i,r),p_GetExp(g,i,r)),r);
     64    p_Setm(p,r);
     65    return p;
    6966#if 0
    7067    else
Note: See TracChangeset for help on using the changeset viewer.