You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Valgrind memory analyzer to test a project creating convex hulls from only 4 vertices it reported issues like this (this is from a test reproducing the issue):
0 bytes in 1 blocks are definitely lost in loss record 1 of 1
in main in /path/main.c:18
1: malloc in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so
2: convhull_3d_build_alloc in /path/convhull_3d/convhull_3d.h:733
3: convhull_3d_build in /path/convhull_3d/convhull_3d.h:573
4: main in /path/main.c:18
Fixes leomccormack/convhull_3d/issues/leomccormack#20
There was a tiny (0 bytes, but allocating 0 bytes likely still uses memory for bookkeeping) that was also reported by Valgrind memory analyzer. This only happened when creating a hull from 4 vertices (tetrahedron). The hulls were ok and this fix doesn't affect those.
Added this due to a tiny (0 bytes alloc) memory leak in convhull_3d,
just to test if the generated hulls are ok (they are).
See:
leomccormack/convhull_3d#20leomccormack/convhull_3d#21
Will commit a fix to the memory leak in a separate commit soon.
There was a tiny (0 bytes, but allocating 0 bytes likely still uses
memory for bookkeeping) memory leak that was also reported by Valgrind
memory analyzer. This only happened when creating a hull from 4 vertices
(tetrahedron). The hulls were ok and this fix doesn't affect those.
From:
leomccormack/convhull_3d#20leomccormack/convhull_3d#21
When using Valgrind memory analyzer to test a project creating convex hulls from only 4 vertices it reported issues like this (this is from a test reproducing the issue):
Code generating the report above:
Generated convex hulls (tetrahedrons) are ok.
The text was updated successfully, but these errors were encountered: