mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
[coverity] playlist.c pl_save_update_control() close fd on error
Change-Id: Ib44e86a36540e65a15eed3e9b99106734379250d
This commit is contained in:
parent
283f31dd39
commit
afba86f0f7
1 changed files with 3 additions and 0 deletions
|
@ -3931,7 +3931,10 @@ static int pl_save_update_control(struct playlist_info* playlist,
|
|||
playlist->filename[playlist->dirlen-1] = c;
|
||||
|
||||
if (err <= 0)
|
||||
{
|
||||
close(old_fd);
|
||||
return -4;
|
||||
}
|
||||
|
||||
if (playlist->first_index > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue