summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Figueiredo <elmig@debianpt.org>2013-06-01 19:12:09 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-06-01 19:12:09 +0200
commitb297c79f3e49237bb6d0b15351238be7efb82e50 (patch)
treeb0f9bf04f98f27a4630681070e1e8d87c796c0a8
parentc3a2f5f3e5bcece4b38c753ad1d53962796327e1 (diff)
Fix descriptor leak
* console-client/xkb/compose.c (read_composefile): Always fclose `fc'.
-rw-r--r--console-client/xkb/compose.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/console-client/xkb/compose.c b/console-client/xkb/compose.c
index 78bce7ff..fb3f07ca 100644
--- a/console-client/xkb/compose.c
+++ b/console-client/xkb/compose.c
@@ -586,8 +586,7 @@ read_composefile (char *composefn)
return errno;
err = parse_composefile (cf);
- if (err)
- fclose (cf);
+ fclose (cf);
return err;
}