summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2010-11-29 09:21:26 +0000
committerkevlo <kevlo@FreeBSD.org>2010-11-29 09:21:26 +0000
commitd18de91c1542bcaca1b2facf1c1b456948dfc466 (patch)
tree7b36150ae8961a3700bbb4bfeeb163eec8dbfdeb /usr.sbin
parent838a278ef3df1cdd1bdba1455a182a57459c4ed4 (diff)
downloadFreeBSD-src-d18de91c1542bcaca1b2facf1c1b456948dfc466.zip
FreeBSD-src-d18de91c1542bcaca1b2facf1c1b456948dfc466.tar.gz
Fix fd leak in get_font
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/kbdmap/kbdmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/kbdmap/kbdmap.c b/usr.sbin/kbdmap/kbdmap.c
index 474553d..cb00c6d 100644
--- a/usr.sbin/kbdmap/kbdmap.c
+++ b/usr.sbin/kbdmap/kbdmap.c
@@ -229,6 +229,7 @@ get_font(void)
} else
fprintf(stderr, "Could not open %s for reading\n", sysconfig);
+ fclose(fp);
return fnt;
}
OpenPOWER on IntegriCloud