[PATCH igt 9/9] msm/mapping: Free devcore

Rob Clark robin.clark at oss.qualcomm.com
Mon Jun 30 18:09:03 UTC 2025


From: Rob Clark <rob.clark at oss.qualcomm.com>

We shouldn't leak the devcore.

Signed-off-by: Rob Clark <rob.clark at oss.qualcomm.com>
---
 tests/msm/msm_mapping.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/msm/msm_mapping.c b/tests/msm/msm_mapping.c
index 7e2f5c7eadc8..b735d5f014c3 100644
--- a/tests/msm/msm_mapping.c
+++ b/tests/msm/msm_mapping.c
@@ -249,6 +249,8 @@ do_mapping_test(struct msm_pipe *pipe, const char *buffername, bool write)
 	igt_fail_on(ret != 1);
 	igt_fail_on(addr != fault_addr);
 
+	free(devcore);
+
 	/* Wait for stall-on-fault to re-enable, otherwise the next sub-test
 	 * would not generate a devcore:
 	 */
-- 
2.50.0



More information about the igt-dev mailing list