mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
skin_parser: fix parse_filetext fd not closed
Change-Id: I5efb0474a349c2cdf58e8e6dfd3de6fb40444a79
This commit is contained in:
parent
c4ceea40bf
commit
3e57ca15a5
1 changed files with 1 additions and 0 deletions
|
@ -1407,6 +1407,7 @@ static int parse_filetext(struct skin_element *element,
|
|||
if (rd <= 0) /* empty line? */
|
||||
{
|
||||
DEBUGF("%s: Error(%d) Reading %s\n", __func__, rd, filename);
|
||||
close(fd);
|
||||
goto failure;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue