1
0
Fork 0
forked from len0rd/rockbox

Fix file descriptor leak on error

Credit goes to "cppcheck" again.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30350 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Jarosch 2011-08-25 19:42:00 +00:00
parent 12ac381408
commit faf354c4f3

View file

@ -3532,7 +3532,10 @@ bool tagcache_create_changelog(struct tagcache_search *tcs)
if (tcs->masterfd < 0)
{
if ( (tcs->masterfd = open_master_fd(&myhdr, false)) < 0)
{
close(clfd);
return false;
}
}
else
{