1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/modalg_7/bug31120
msv 23c2ae55c7 0031120: Memory leak in BRepOffsetAPI_MakeOffset
Add destructor of MAT2d_Mat2d - full removal of edges and bisectors.
2019-12-17 15:51:06 +03:00

23 lines
542 B
Plaintext

puts "================================================="
puts "OCC31120: Memory leak in BRepOffsetAPI_MakeOffset"
puts "================================================="
puts ""
restore [locate_data_file bug31120_wire.brep] w
mkoffset r w 1 0.5
set log [meminfo h]
regexp {([0-9+-.eE]*)} $log full memval1
for {set i 0} {$i < 20} {incr i} {
mkoffset r w 1 0.5
set log [meminfo h]
regexp {([0-9+-.eE]*)} $log full memval
set ratio (${memval}-{$memval1})/${memval1}
if { ${ratio} > 0.05} {
puts "Error: memory leak"
}
}