diff options
author | ngie <ngie@FreeBSD.org> | 2016-04-20 00:19:04 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-04-20 00:19:04 +0000 |
commit | c812be13956348789ee902dfa962354ef4cfe6ba (patch) | |
tree | 18cdd07180043b3350d52eeea0565553b3877a4c /sbin/savecore | |
parent | ef837f8229b78347a7fa76948f495fc09df2ec2e (diff) | |
download | FreeBSD-src-c812be13956348789ee902dfa962354ef4cfe6ba.zip FreeBSD-src-c812be13956348789ee902dfa962354ef4cfe6ba.tar.gz |
Fix double fclose of `fp1` when freopen fails
freopen handles closing file descriptors on error, with the exception of
fdopen'ed descriptors, so closing an already fclose'd file descriptor is
incorrect
CID: 1338525
Differential Revision: https://reviews.freebsd.org/D6013
MFC after: 2 weeks
Reported by: Coverity
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sbin/savecore')
0 files changed, 0 insertions, 0 deletions