aboutsummaryrefslogtreecommitdiffstats
path: root/src/drm-shim/drm_shim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drm-shim/drm_shim.c')
-rw-r--r--src/drm-shim/drm_shim.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drm-shim/drm_shim.c b/src/drm-shim/drm_shim.c
index 7c7d5f0f009..381a94fb9d1 100644
--- a/src/drm-shim/drm_shim.c
+++ b/src/drm-shim/drm_shim.c
@@ -219,6 +219,7 @@ PUBLIC FILE *fopen(const char *path, const char *mode)
pipe(fds);
write(fds[1], file_overrides[i].contents,
strlen(file_overrides[i].contents));
+ close(fds[1]);
return fdopen(fds[0], "r");
}
}