cxgbetool(8): Do not close uninitialized fd on malloc failure.

MFC after:	1 week
Sponsored by:	Chelsio Communications
This commit is contained in:
np 2017-10-09 18:00:40 +00:00
parent fd24972feb
commit e125b8317c

View File

@ -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);
}