diff options
author | brueffer <brueffer@FreeBSD.org> | 2014-04-14 21:44:34 +0000 |
---|---|---|
committer | brueffer <brueffer@FreeBSD.org> | 2014-04-14 21:44:34 +0000 |
commit | 8ac2dd562fe7fbc055cb8d7525b7255ee0c56847 (patch) | |
tree | e9f82d7c4e95a0a322ddf8e2fff19455986497a8 /sbin | |
parent | c4f70eafe77c2186fa18d67b103886c421d101dd (diff) | |
download | FreeBSD-src-8ac2dd562fe7fbc055cb8d7525b7255ee0c56847.zip FreeBSD-src-8ac2dd562fe7fbc055cb8d7525b7255ee0c56847.tar.gz |
Fix double fclose() in an error case.
CID: 1006120
Found with: Coverity Prevent(tm)
MFC after: 1 week
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/savecore/savecore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index ca2dafd..0f1d41e 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -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(); |