mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 08:09:08 +00:00
Fix double fclose() in an error case.
CID: 1006120 Found with: Coverity Prevent(tm) MFC after: 1 week
This commit is contained in:
parent
c4f70eafe7
commit
8ac2dd562f
@ -672,7 +672,7 @@ DoFile(const char *savedir, const char *device)
|
||||
if (fclose(fp) < 0) {
|
||||
syslog(LOG_ERR, "error on %s: %m", corename);
|
||||
nerr++;
|
||||
goto closeall;
|
||||
goto closefd;
|
||||
}
|
||||
|
||||
symlinks_remove();
|
||||
|
Loading…
Reference in New Issue
Block a user