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>
This commit is contained in:
@@ -340,5 +340,6 @@ main(UNUSED int argc, UNUSED char **argv)
|
||||
fail |= run_tests(devinfo);
|
||||
}
|
||||
|
||||
free(devinfo);
|
||||
return fail;
|
||||
}
|
||||
|
Reference in New Issue
Block a user