summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMika Kuoppala <mika.kuoppala@linux.intel.com>2013-11-26 09:26:17 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-04 13:23:01 +0100
commitfb03ea7737dcda887e6eeca17afe7b91cf178b38 (patch)
tree0e5bca901ee37b29d1fb0fc7274894f4054ea4ec /lib
parentab7cbf9737fe35cc286520379e54ae9882ab402b (diff)
lib/drmtest: Fix filedesc leak on gem_quiescent_gpu
to not run out of filedescs as some tests call gem_quiescent_gpu directly. Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib')
-rw-r--r--lib/drmtest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 139eb82f..8c696b1c 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -168,6 +168,7 @@ void gem_quiescent_gpu(int fd)
gem_sync(fd, handle);
igt_drop_caches_set(DROP_RETIRE);
+ gem_close(fd, handle);
}
/**