summaryrefslogtreecommitdiff
path: root/xserver/hw/dmx/config/dmxcompat.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/hw/dmx/config/dmxcompat.c')
-rw-r--r--xserver/hw/dmx/config/dmxcompat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xserver/hw/dmx/config/dmxcompat.c b/xserver/hw/dmx/config/dmxcompat.c
index bd9f12738..107991a96 100644
--- a/xserver/hw/dmx/config/dmxcompat.c
+++ b/xserver/hw/dmx/config/dmxcompat.c
@@ -228,5 +228,9 @@ dmxVDLRead(const char *filename)
break;
}
}
+
+ if (str != stdin)
+ fclose(str);
+
return entry;
}