spielwiese
Last change
on this file since 7c8188b was
7c8188b,
checked in by Hans Schoenemann <hannes@…>, 5 years ago
|
fix: memory leak in std(x+y,x-y) in Z[x,y]
|
-
Property mode set to
100644
|
File size:
315 bytes
|
Line | |
---|
1 | LIB "tst.lib"; |
---|
2 | tst_init(); |
---|
3 | |
---|
4 | // memory leak in std in Z[x,y]: |
---|
5 | int i; |
---|
6 | bigint m=memory(0); |
---|
7 | ring r=ZZ,(x,y),(dp,c); |
---|
8 | ideal I=x+y,x-y; |
---|
9 | ideal J; |
---|
10 | for (i=0;i<10;i++) |
---|
11 | { |
---|
12 | J=std(I); |
---|
13 | } |
---|
14 | kill r; |
---|
15 | memory(0)-m; |
---|
16 | ring r=ZZ,(x,y),(dp,c); |
---|
17 | ideal I=x+y,x-y; |
---|
18 | ideal J; |
---|
19 | for (i=0;i<10;i++) |
---|
20 | { |
---|
21 | J=std(I); |
---|
22 | } |
---|
23 | kill r; |
---|
24 | memory(0)-m; |
---|
25 | |
---|
26 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.