Opened 11 years ago

Closed 11 years ago

#429 closed bug (fixed)

Memory leak in intmat assignment

Reported by: steenpass Owned by: somebody
Priority: minor Milestone: 3-1-5 and higher
Component: dontKnow Version: 3-1-4
Keywords: intmat, memory leak Cc:

Description

Executing

int n = 10000;
intmat M[1][n];
intvec v = 0:n;
int i;
memory(0);
memory(1);
memory(2);
for (i = 0; i < 1000; i++) {
    M[1, 1..n] = v;
}
memory(0);
memory(1);
memory(2);
quit;

gives

237432
2303832
2303832
884201168
897613824
897685240
Auf Wiedersehen.

So there is obviously a memory leak in the intmat assignment.

Change History (1)

comment:1 Changed 11 years ago by hannes

Resolution: fixed
Status: newclosed

fixed, also for matrices

Note: See TracTickets for help on using tickets.