summaryrefslogtreecommitdiffstats
path: root/libvo/vo_vesa.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_vesa.c')
-rw-r--r--libvo/vo_vesa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c
index 3494d5eaef..46b6860658 100644
--- a/libvo/vo_vesa.c
+++ b/libvo/vo_vesa.c
@@ -1025,6 +1025,8 @@ static uint32_t preinit(const char *arg)
fd = open("/dev/mem", O_RDWR);
if (fd < 0)
return -1;
+ else
+ close(fd);
if(verbose > 2)
printf("vo_subdevice: initialization returns: %i\n",pre_init_err);
return pre_init_err;