From fb03ea7737dcda887e6eeca17afe7b91cf178b38 Mon Sep 17 00:00:00 2001 From: Mika Kuoppala Date: Tue, 26 Nov 2013 09:26:17 +0200 Subject: 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 Signed-off-by: Daniel Vetter --- lib/drmtest.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/drmtest.c') 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); } /** -- cgit v1.2.3