From b297c79f3e49237bb6d0b15351238be7efb82e50 Mon Sep 17 00:00:00 2001 From: Miguel Figueiredo Date: Sat, 1 Jun 2013 19:12:09 +0200 Subject: Fix descriptor leak * console-client/xkb/compose.c (read_composefile): Always fclose `fc'. --- console-client/xkb/compose.c | 3 +-- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3