From 5420fc16d66caab45fab9236877bb69eb76934e6 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 2 Jan 2025 12:10:17 -0800 Subject: [PATCH] intel/tests: Fix coverity warning about possibly leaked memory If the assert were to fail the memory would leak, which is pretty harmless in a unit test, but the fix is trivial. CID: 1635429 Fixes: 6b931a68c79 ("intel/common: Implement Xe KMD in mi_builder tests") Reviewed-by: Caio Oliveira Part-of: --- src/intel/common/tests/mi_builder_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/common/tests/mi_builder_test.cpp b/src/intel/common/tests/mi_builder_test.cpp index 4e2ac9d83b8..9326b36931c 100644 --- a/src/intel/common/tests/mi_builder_test.cpp +++ b/src/intel/common/tests/mi_builder_test.cpp @@ -337,8 +337,8 @@ mi_builder_test::SetUp() break; } } - ASSERT_TRUE(found_engine); free(engines_info); + ASSERT_TRUE(found_engine); struct drm_xe_exec_queue_create queue_create = { .width = 1,