From ae156dec1441070a21c713efed50d52127799238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me> Date: Mon, 11 Mar 2024 11:53:56 +0100 Subject: [PATCH] chore : removed mem leak in unit test. --- unit_tests/operator/Test_GlobalAveragePoolingImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unit_tests/operator/Test_GlobalAveragePoolingImpl.cpp b/unit_tests/operator/Test_GlobalAveragePoolingImpl.cpp index bb45927c..f494cd9c 100644 --- a/unit_tests/operator/Test_GlobalAveragePoolingImpl.cpp +++ b/unit_tests/operator/Test_GlobalAveragePoolingImpl.cpp @@ -98,6 +98,8 @@ TEST_CASE("[cpu/operator] GlobalAveragePooling", array0[i] = valueDist(gen); result[i] += array0[i] / nb_elements; } + delete[] array0; + delete[] result; REQUIRE_THROWS(globAvgPool->forward()); } -- GitLab