summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/renderonly/renderonly.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/renderonly/renderonly.c')
-rw-r--r--src/gallium/auxiliary/renderonly/renderonly.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/renderonly/renderonly.c b/src/gallium/auxiliary/renderonly/renderonly.c
index 7e23769159d..e17c32886d2 100644
--- a/src/gallium/auxiliary/renderonly/renderonly.c
+++ b/src/gallium/auxiliary/renderonly/renderonly.c
@@ -116,6 +116,8 @@ renderonly_create_kms_dumb_buffer_for_resource(struct pipe_resource *rsc,
scanout->prime = screen->resource_from_handle(screen, rsc,
&handle, PIPE_HANDLE_USAGE_READ_WRITE);
+ close(prime_fd);
+
if (!scanout->prime) {
fprintf(stderr, "failed to create resource_from_handle: %s\n", strerror(errno));
goto free_dumb;