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

MFC after:	1 week
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2017-10-09 18:00:40 +00:00
parent 62d028dcac
commit 497e8a6bf0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324443

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