directory: don't leak file handles if we get a corrupt db

This commit is contained in:
Eric Wong 2008-09-23 22:37:40 +02:00 committed by Max Kellermann
parent 28d39948d7
commit 5cc5c37856

View File

@ -1052,7 +1052,7 @@ int readDirectoryDB(void)
} else {
ERROR("db info not found in db file\n");
ERROR("you should recreate the db using --create-db\n");
fseek(fp, 0, SEEK_SET);
while (fclose(fp) && errno == EINTR) ;
return -1;
}
}