Changeset 1ceb92 in git


Ignore:
Timestamp:
Feb 13, 2009, 11:01:26 AM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
fc681b82f6946b8d67552198cf15bccece338710
Parents:
9f7c98afd95242eaf9f63019cd36b483465f8c85
Message:
*hannes: memory handling


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

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r9f7c98 r1ceb92  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.494 2009-02-13 09:46:49 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.495 2009-02-13 10:01:26 Singular Exp $ */
    55
    66/*
     
    69706970  }
    69716971  int r=v->Typ();
     6972  BOOLEAN cleanup_i0=FALSE;
    69726973  if ((r==POLY_CMD) ||(r==VECTOR_CMD))
    69736974  {
    69746975    i0=idInit(1,i1->rank);
    69756976    i0->m[0]=(poly)v->Data();
     6977    BOOLEAN cleanup_i0=TRUE;;
    69766978  }
    69776979  else /* IDEAL */
     
    69816983  int ii0=idElem(i0);
    69826984  i1 = idSimpleAdd(i1,i0);
    6983   memset(i0->m,0,sizeof(poly)*IDELEMS(i0));
    6984   idDelete(&i0);
     6985  if (cleanup_i0)
     6986  {
     6987    memset(i0->m,0,sizeof(poly)*IDELEMS(i0));
     6988    idDelete(&i0);
     6989  }
    69856990  intvec *ww=(intvec *)atGet(u,"isHomog",INTVEC_CMD);
    69866991  tHomog hom=testHomog;
Note: See TracChangeset for help on using the changeset viewer.