IVGCVSW-4553 Fix Wrapper Object Use after free in UnitTests.hpp
authorFinn Williams <Finn.Williams@arm.com>
Wed, 18 Mar 2020 14:20:37 +0000 (14:20 +0000)
committerfinn.williams <finn.williams@arm.com>
Thu, 19 Mar 2020 11:21:09 +0000 (11:21 +0000)
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I174f83c9a454b5499f817baf0bddcd4a49cac523

src/armnn/test/UnitTests.hpp

index 60d191f97d87c88d375f1b674f087cbbc63c576c..fbba9a2473a30ee5e3c6b00c302afd4f95042cef 100644 (file)
@@ -70,6 +70,8 @@ void RunTestFunction(const char* testName, TFuncPtr testFunction, Args... args)
 
     auto testResult = (*testFunction)(workloadFactory, memoryManager, args...);
     CompareTestResultIfSupported(testName, testResult);
+
+    armnn::ProfilerManager::GetInstance().RegisterProfiler(nullptr);
 }
 
 #define ARMNN_SIMPLE_TEST_CASE(TestName, TestFunction) \