summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-05-23 12:08:59 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-05-23 12:10:07 +0100
commita25e83f3c7aa1a0a8a1774d28afb6dbda8ccbcbc (patch)
treed58b7c214f4c1af51b6e8cbd63c77d8220c7bbfa
parentc206fda29509e0805baca0a90aee64434be444f0 (diff)
igt/gem_exec_store: And free the new obj/reloc arrays
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--tests/gem_exec_store.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gem_exec_store.c b/tests/gem_exec_store.c
index 5237fe78..d2b3b737 100644
--- a/tests/gem_exec_store.c
+++ b/tests/gem_exec_store.c
@@ -165,9 +165,12 @@ static void store_cachelines(int fd, unsigned ring, unsigned int flags)
igt_assert_eq_u32(result, n | ~n << 16);
}
+ free(reloc);
for (unsigned n = 0; n < execbuf.buffer_count; n++)
gem_close(fd, obj[n].handle);
+ free(obj);
+
igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0);
}