Changeset cb58fc4 in git for Singular/iparith.cc


Ignore:
Timestamp:
Apr 8, 2009, 7:18:55 PM (15 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a7541b59e5f1a2bdd1a3d8749700ceb15bb5b7a7
Parents:
06984ae84863612ab64e2e3f8903aa78ef9e0d44
Message:
*motsak: memory leaks in jjSTD_1???


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

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r06984a rcb58fc4  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.503 2009-04-03 18:27:19 motsak Exp $ */
     4/* $Id: iparith.cc,v 1.504 2009-04-08 17:18:55 motsak Exp $ */
    55
    66/*
     
    30823082  if ((/*v->Typ()*/r==POLY_CMD) ||(r==VECTOR_CMD))
    30833083  {
    3084     i0=idInit(1,i1->rank);
     3084    i0=idInit(1,i1->rank); // TODO: rank is wrong (if v is a vector!)
    30853085    i0->m[0]=(poly)v->Data();
    30863086  }
    30873087  else /*IDEAL*/
    30883088  {
    3089     i0=(ideal)v->CopyD();
     3089    i0=(ideal)v->CopyD(); // TODO: memory leak? !
    30903090  }
    30913091  int ii0=idElem(i0); /* size of i0 */
    3092   i1=idSimpleAdd(i1,i0);
    3093   memset(i0->m,0,sizeof(poly)*IDELEMS(i0));
     3092  i1=idSimpleAdd(i1,i0); //
     3093  memset(i0->m,0,sizeof(poly)*IDELEMS(i0)); // TODO: memory leak? !!
    30943094  idDelete(&i0);
    30953095  intvec *w=(intvec *)atGet(u,"isHomog",INTVEC_CMD);
Note: See TracChangeset for help on using the changeset viewer.