Changeset 891122 in git


Ignore:
Timestamp:
Jul 16, 2013, 4:56:07 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
22c7f081eb5086ea769d4b1bf61d4ca3f4a88b04
Parents:
d220af17ce2ecb53dc744ab69471b35e99971cc5
Message:
fix: more memory leaks (analogue intvec::String)

from master
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    rd220af1 r891122  
    190190#ifndef NDEBUG
    191191    WarnS("Set minpoly over non-transcendental ground field to 0?!");
     192    Warn("in >>%s<<",my_yylinebuf);
    192193#endif
    193194    return FALSE;
  • Singular/ipprint.cc

    rd220af1 r891122  
    241241      case INTVEC_CMD:
    242242        bo=ipPrint_INTVEC(u);
    243         break;
     243        break;
    244244
    245245      case INTMAT_CMD:
    246246        bo=ipPrint_INTMAT(u);
    247         break;
     247        break;
    248248
    249249      case MATRIX_CMD:
    250250        bo=ipPrint_MA(u);
    251         break;
     251        break;
    252252
    253253      case IDEAL_CMD:
     
    270270      case VECTOR_CMD:
    271271        bo=ipPrint_V(u);
    272         break;
     272        break;
    273273
    274274      case RING_CMD:
    275275      case QRING_CMD:
    276276        bo=ipPrint_RING(u);
    277         break;
     277        break;
    278278
    279279      default:
  • libpolys/misc/int64vec.cc

    rd220af1 r891122  
    100100char * int64vec::String(int dim)
    101101{
    102   return omStrDup(iv64String(0, 0, dim));
    103 }
    104 
    105 void int64vec::show(int mat,int spaces)
    106 {
     102  return iv64String(0, 0, dim);
     103}
     104
     105void int64vec::show(int notmat,int spaces)
     106{
     107  char *s=iv64String(notmat,spaces);
    107108  if (spaces>0)
    108109  {
    109110    PrintNSpaces(spaces);
    110     PrintS(iv64String(mat,spaces));
     111    PrintS(s);
    111112  }
    112113  else
    113     PrintS(iv64String(mat,0));
     114  {
     115    PrintS(s);
     116  }
     117  omFree(s);
    114118}
    115119
  • libpolys/misc/intvec.cc

    rd220af1 r891122  
    154154void intvec::show(int notmat,int spaces) const
    155155{
     156  char *s=ivString(notmat,spaces);
    156157  if (spaces>0)
    157158  {
    158159    PrintNSpaces(spaces);
    159     PrintS(ivString(notmat,spaces));
     160    PrintS(s);
    160161  }
    161162  else
    162     PrintS(ivString(notmat,0));
     163  {
     164    PrintS(s);
     165  }
     166  omFree(s);
    163167}
    164168
Note: See TracChangeset for help on using the changeset viewer.