Changeset 9b9b5a in git


Ignore:
Timestamp:
Apr 22, 2008, 10:38:25 AM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
644c6b4ce376564f5869fabfb71bce10cba6393d
Parents:
608c410362f7b06cfa02f9d25ef2d8d5780c43e6
Message:
*hannes: memory leak for gcd(const, const)


git-svn-id: file:///usr/local/Singular/svn/trunk@10678 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/clapsing.cc

    r608c41 r9b9b5a  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapsing.cc,v 1.28 2008-03-18 10:11:04 Singular Exp $
     5// $Id: clapsing.cc,v 1.29 2008-04-22 08:38:25 Singular Exp $
    66/*
    77* ABSTRACT: interface between Singular and factory
     
    203203  if (f!=NULL) pCleardenom(f);
    204204  if (g!=NULL) pCleardenom(g);
    205   else         return pCopy(f); // g==0 => gcd=f (but do a pCleardenom)
    206   if (f==NULL) return pCopy(g); // f==0 => gcd=g (but do a pCleardenom)
    207 
    208   if (pIsConstantPoly(f) || pIsConstantPoly(g)) return pOne();
     205  else         return f; // g==0 => gcd=f (but do a pCleardenom)
     206  if (f==NULL) return g; // f==0 => gcd=g (but do a pCleardenom)
     207
     208  if (pIsConstantPoly(f) || pIsConstantPoly(g))
     209  {
     210    pDelete(&f);
     211    pDelete(&g);
     212    return pOne();
     213  }
    209214
    210215  // for now there is only the possibility to handle polynomials over
Note: See TracChangeset for help on using the changeset viewer.