Fix double fclose() in an error case.

CID:		1006120
Found with:	Coverity Prevent(tm)
MFC after:	1 week
This commit is contained in:
brueffer 2014-04-14 21:44:34 +00:00
parent c4f70eafe7
commit 8ac2dd562f

View File

@ -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();