Opened 8 years ago

Closed 8 years ago

#781 closed bug (duplicate)

memleak in using intvec expressions in square brackets

Reported by: ren Owned by: somebody
Priority: major Milestone: 4-1-0 and higher
Component: dontKnow Version: 4-0-3
Keywords: Cc:

Description

Examples:

proc memleakhere()
{
  intvec Hash=0..100;
  Hash = Hash[2..size(Hash)];
}

for (int i=1; i<=1000000; i++)
{
  memleakhere();
  memory(0);
}

or

proc memleakhere()
{
  intmat Hash[100][1]=1..100;
  intmat Hash2[10][1]=Hash[1..10,1];
}

for (int i=1; i<=1000000; i++)
{
  memleakhere();
  memory(0);
}

Change History (1)

comment:1 Changed 8 years ago by hannes

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.