summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@freedesktop.org>2011-05-23 11:35:10 +0200
committerLuc Verhaegen <libv@skynet.be>2011-05-23 14:29:17 +0200
commit4977111db4a7990873a38b1e2cf6c8aafe431d6f (patch)
tree78bfa13246b9016b5f9c1d1e71a4b9553cda7f93
parent3e2dd0afb9719295454d8d879d6f5ffde0755253 (diff)
crtc/edid: Close fd before fd gets out of scope.
Signed-off-by: Egbert Eich <eich@freedesktop.org>
-rw-r--r--src/via_crt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/via_crt.c b/src/via_crt.c
index 6c79292..0429e5a 100644
--- a/src/via_crt.c
+++ b/src/via_crt.c
@@ -154,6 +154,8 @@ CRTGetOptions(struct ViaOutput *Output)
__func__, EDIDFileName, strerror(errno));
else
Output->EDID = xf86InterpretEDID(Output->scrnIndex, Block);
+
+ fclose(EDIDFile);
}
}