[igt-dev] [PATCH i-g-t v15 01/33] tests/gem_softpin: Fix object leak in softpin test
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Thu Jan 14 19:57:04 UTC 2021
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
tests/i915/gem_softpin.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/i915/gem_softpin.c b/tests/i915/gem_softpin.c
index 7edb610ba..aba060a42 100644
--- a/tests/i915/gem_softpin.c
+++ b/tests/i915/gem_softpin.c
@@ -290,6 +290,8 @@ static void test_softpin(int fd)
count++;
}
igt_info("Completed %lu cycles\n", count);
+
+ gem_close(fd, last_handle);
}
static void invalid_execbuf(int i915, struct drm_i915_gem_execbuffer2 *execbuf)
--
2.26.0
More information about the igt-dev
mailing list