summaryrefslogtreecommitdiffstats
path: root/firmware/font.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-09-29 05:42:20 +0000
committerThomas Martitz <kugel@rockbox.org>2011-09-29 05:42:20 +0000
commit1125c39ea8dc734d09df88c9050ecf03a29cf99c (patch)
treebb27cd0145887dc4956df23f54f71baf7d85554c /firmware/font.c
parent205ef12b9d503c1fedd5534dab9a8f5fe49798f7 (diff)
downloadrockbox-1125c39ea8dc734d09df88c9050ecf03a29cf99c.tar.gz
rockbox-1125c39ea8dc734d09df88c9050ecf03a29cf99c.tar.bz2
rockbox-1125c39ea8dc734d09df88c9050ecf03a29cf99c.zip
Don't leak file descriptor.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30619 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/font.c')
-rw-r--r--firmware/font.c1
1 files changed, 1 insertions, 0 deletions
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);
}