mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-10 18:38:27 +02:00
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: 6b931a68c7 ("intel/common: Implement Xe KMD in mi_builder tests")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32849>
This commit is contained in:
parent
51a2f70e5e
commit
5420fc16d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue