Changeset 2b17ec in git


Ignore:
Timestamp:
May 11, 2011, 5:52:24 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '7725b5cfc1eaf99630826ecc59f559d3b6831c24')
Children:
e92dc4a2ac737df19d2c317609ccd85d14e7df55
Parents:
7d2573e1aca16d3661e41bb819c81b7bf820bd8b
Message:
fix memory leak in resolutions

git-svn-id: file:///usr/local/Singular/svn/trunk@14211 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/polys.cc

    r7d2573 r2b17ec  
    151151/*2
    152152* divides a by the monomial b, ignores monomials which are not divisible
    153 * assumes that b is not NULL
     153* assumes that b is not NULL, destroys b
    154154*/
    155155poly pDivideM(poly a, poly b)
    156156{
    157   if (a==NULL) return NULL;
     157  if (a==NULL) { pDelete(&b); return NULL; }
    158158  poly result=a;
    159159  poly prev=NULL;
     
    369369}
    370370
    371 /*4
    372 *Returns the exponent of the maximal power of the leading monomial of
    373 *p2 in that of p1
    374 */
    375371/*----------utilities for syzygies--------------*/
    376372poly pTakeOutComp(poly * p, int k)
  • kernel/syz1.cc

    r7d2573 r2b17ec  
    21922192        ltS = -1;
    21932193        kBucket_Minus_m_Mult_p(syzstr->bucket,mp,tempStripped,&ltS);
     2194        pDelete(&mp);
    21942195        mp = p;
    21952196      }
     
    23702371      }
    23712372      delete Strip;
     2373      delete ordn;
    23722374      Strip = NULL;
    23732375    }
Note: See TracChangeset for help on using the changeset viewer.