Changeset e432a0 in git


Ignore:
Timestamp:
May 11, 2011, 6:21:10 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
Children:
cd6df87ae4f52ce9e0b7fb9ae4a94c6f9a7e0f94
Parents:
adb2edca6f47570822acf20e418c48a4763eab41
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-11 18:21:10+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:04+01:00
Message:
fix: memory leak in p_DivideM
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/p_polys.cc

    radb2ed re432a0  
    13441344/*2
    13451345* divides a by the monomial b, ignores monomials which are not divisible
    1346 * assumes that b is not NULL
     1346* assumes that b is not NULL, destroyes b
    13471347*/
    13481348poly p_DivideM(poly a, poly b, const ring r)
    13491349{
    1350   if (a==NULL) return NULL;
     1350  if (a==NULL) { p_Delete(&b,r); return NULL; }
    13511351  poly result=a;
    13521352  poly prev=NULL;
Note: See TracChangeset for help on using the changeset viewer.