source: git/Tst/Short/bug_mem_Z.tst @ 7c8188b

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 
1LIB "tst.lib";
2tst_init();
3
4// memory leak in std in Z[x,y]:
5int i;
6bigint m=memory(0);
7ring r=ZZ,(x,y),(dp,c);
8ideal I=x+y,x-y;
9ideal J;
10for (i=0;i<10;i++)
11{
12 J=std(I);
13}
14kill r;
15memory(0)-m;
16ring r=ZZ,(x,y),(dp,c);
17ideal I=x+y,x-y;
18ideal J;
19for (i=0;i<10;i++)
20{
21 J=std(I);
22}
23kill r;
24memory(0)-m;
25
26tst_status(1);$
Note: See TracBrowser for help on using the repository browser.