cxgbetool(8): Do not close uninitialized fd on malloc failure.
MFC after: 1 week Sponsored by: Chelsio Communications
This commit is contained in:
parent
fd24972feb
commit
e125b8317c
@ -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 New Issue
Block a user