Changeset 891122 in git for libpolys/misc/int64vec.cc


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

from master
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.