Opened 6 years ago
Closed 6 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); }
Note: See
TracTickets for help on using
tickets.
duplicate of #780, fixed with 76a7291160a6ba0f7e662bf112de635f35663c1d