[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rockbox-cvs
Subject:    kugel: r30619 - trunk/firmware
From:       mailer () svn ! rockbox ! org
Date:       2011-09-29 5:42:20
Message-ID: 201109290542.p8T5gKeU023160 () giant ! haxx ! se
[Download RAW message or body]

Date: 2011-09-29 07:42:20 +0200 (Thu, 29 Sep 2011)
New Revision: 30619

Log Message:
Don't leak file descriptor.

Modified:
   trunk/firmware/font.c

Modified: trunk/firmware/font.c
===================================================================
--- trunk/firmware/font.c	2011-09-29 03:15:27 UTC (rev 30618)
+++ trunk/firmware/font.c	2011-09-29 05:42:20 UTC (rev 30619)
@@ -557,6 +557,7 @@
     size = filesize(fd);    
     if (size > MAX_FONT_SIZE)
         size = MAX_FONT_SIZE;
+    close(fd);
     return font_load_ex(path, size);
 }
 

_______________________________________________
rockbox-cvs mailing list
rockbox-cvs@cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic