mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
cxgbetool(8): Do not close uninitialized fd on malloc failure.
MFC after: 1 week Sponsored by: Chelsio Communications
This commit is contained in:
parent
62d028dcac
commit
497e8a6bf0
1 changed files with 0 additions and 1 deletions
|
|
@ -1901,7 +1901,6 @@ dumpstate(int argc, const char *argv[])
|
|||
dump.len = 8 * 1024 * 1024;
|
||||
dump.data = malloc(dump.len);
|
||||
if (dump.data == NULL) {
|
||||
close(fd);
|
||||
return (ENOMEM);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue