star-3dstl

Create star-3d geometries from StL files
git clone git://git.meso-star.fr/star-3dstl.git
Log | Files | Refs | README | LICENSE

commit 28fd5205dba6ab08a0e6ec575914874b5eb5fc53
parent c1362fe96fe5cf3037fe8baf09441624b5e0837b
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 19 Oct 2023 11:30:58 +0200

Fix memory leaks in test_s3dstl test

Temporary files were not closed.

Diffstat:
Msrc/test_s3dstl.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/test_s3dstl.c b/src/test_s3dstl.c @@ -175,6 +175,9 @@ test_load(struct s3dstl* s3dstl) CHK(s3dstl_clear(s3dstl) == RES_OK); CHK(s3dstl_get_shape(s3dstl, &shape) == RES_OK); CHK(shape == NULL); + + CHK(fclose(file) == 0); + CHK(fclose(file2) == 0); } int