Fix double fclose() in an error case.

CID:		1006120
Found with:	Coverity Prevent(tm)
MFC after:	1 week
This commit is contained in:
Christian Brueffer 2014-04-14 21:44:34 +00:00
parent 956c78c92b
commit 27e21758b8

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