diff options
author | brueffer <brueffer@FreeBSD.org> | 2014-04-23 07:33:51 +0000 |
---|---|---|
committer | brueffer <brueffer@FreeBSD.org> | 2014-04-23 07:33:51 +0000 |
commit | 53a0ec56bbde6647db65640e1176b128cd363647 (patch) | |
tree | 7dba26ade59ddd85b053b80215e7d20f25ab6d20 | |
parent | 4bf359bbbf2801929c937ed987d9d34bd645d104 (diff) | |
download | FreeBSD-src-53a0ec56bbde6647db65640e1176b128cd363647.zip FreeBSD-src-53a0ec56bbde6647db65640e1176b128cd363647.tar.gz |
MFC: r264479
Fix double fclose() in an error case.
CID: 1006120
Found with: Coverity Prevent(tm)
-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 bdbf7e3..c2cb63b 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(); |