From 87ade68d73026fddc94d89d98077165b6f04ea74 Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Thu, 13 Nov 2025 10:57:25 +0100 Subject: [PATCH] test: fix undefined behaviour --- tests/occt/point-test.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/occt/point-test.cpp b/tests/occt/point-test.cpp index 0ded2db..b74b876 100644 --- a/tests/occt/point-test.cpp +++ b/tests/occt/point-test.cpp @@ -163,10 +163,9 @@ TEST_CASE("Benchmark point operations") { } SECTION("delete_point performance") { - point_shape_t* p = make_point(1.0, 2.0, 3.0); BENCHMARK("Delete point") { + point_shape_t* p = make_point(1.0, 2.0, 3.0); delete_point(p); - return p; }; } }