From 1125c39ea8dc734d09df88c9050ecf03a29cf99c Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 29 Sep 2011 05:42:20 +0000 Subject: [PATCH] Don't leak file descriptor. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30619 a1c6a512-1295-4272-9138-f99709370657 --- firmware/font.c | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/font.c b/firmware/font.c index a8d8786259..f00ff0e327 100644 --- a/firmware/font.c +++ b/firmware/font.c @@ -557,6 +557,7 @@ int font_load(const char *path) size = filesize(fd); if (size > MAX_FONT_SIZE) size = MAX_FONT_SIZE; + close(fd); return font_load_ex(path, size); }