diff options
author | Miguel Figueiredo <elmig@debianpt.org> | 2013-06-01 19:12:09 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-06-01 19:12:09 +0200 |
commit | b297c79f3e49237bb6d0b15351238be7efb82e50 (patch) | |
tree | b0f9bf04f98f27a4630681070e1e8d87c796c0a8 /console-client | |
parent | c3a2f5f3e5bcece4b38c753ad1d53962796327e1 (diff) |
Fix descriptor leak
* console-client/xkb/compose.c (read_composefile): Always fclose `fc'.
Diffstat (limited to 'console-client')
-rw-r--r-- | console-client/xkb/compose.c | 3 |
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; } |