diff options
author | Rohan Garg <rohan.garg@collabora.com> | 2021-02-10 16:43:08 +0100 |
---|---|---|
committer | Rohan Garg <rohan.garg@collabora.com> | 2021-02-16 15:07:52 +0100 |
commit | 56bbbc83221528553c666400dc5c936132a9129c (patch) | |
tree | 224fc960259008885e1f05c936a7e42e1a449c0a /src/intel/compiler/test_eu_compact.cpp | |
parent | 628c10f14e994afee933e9e523b6b6363b1b734d (diff) | |
download | mesa-56bbbc83221528553c666400dc5c936132a9129c.tar.gz |
intel/compiler: Free resources on test teardown
Ensure that all resources are properly released by
properly parenting them to a memory context and releasing
the context during test teardown.
Signed-off-by: Rohan Garg <rohan.garg@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8162>
Diffstat (limited to 'src/intel/compiler/test_eu_compact.cpp')
-rw-r--r-- | src/intel/compiler/test_eu_compact.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/compiler/test_eu_compact.cpp b/src/intel/compiler/test_eu_compact.cpp index a371a32862c..f966ba43f04 100644 --- a/src/intel/compiler/test_eu_compact.cpp +++ b/src/intel/compiler/test_eu_compact.cpp @@ -340,5 +340,6 @@ main(UNUSED int argc, UNUSED char **argv) fail |= run_tests(devinfo); } + free(devinfo); return fail; } |