Changeset ea9fd60 in git


Ignore:
Timestamp:
Jan 10, 2013, 5:28:23 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
484a08c08ac3762652a83dd7b3651dbf06125695
Parents:
13621c716ba21cf69deb36d9f86d07ac07f0d84a
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-01-10 17:28:23+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-01-10 18:19:41+01:00
Message:
fix: p_String memory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/subexpr.cc

    r13621c7 rea9fd60  
    740740            s = (char*) omAlloc(strlen(ps) + 10);
    741741            sprintf(s,"%s(%s)", (t /*Typ()*/ == POLY_CMD ? "poly" : "vector"), ps);
     742            omFree(ps);
    742743            return s;
    743744          }
    744745          else
    745             return omStrDup(pString((poly)d));
     746            return pString((poly)d);
    746747
    747748        case NUMBER_CMD:
  • libpolys/polys/polys0.cc

    r13621c7 rea9fd60  
    192192void p_Write0(poly p, ring lmRing, ring tailRing)
    193193{
    194   PrintS(p_String(p, lmRing, tailRing));
     194  char *s=p_String(p, lmRing, tailRing);
     195  PrintS(s);
     196  omFree(s);
    195197}
    196198
Note: See TracChangeset for help on using the changeset viewer.