Date: Mon, 9 Oct 2017 18:00:40 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r324443 - head/usr.sbin/cxgbetool Message-ID: <201710091800.v99I0evm001664@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Mon Oct 9 18:00:40 2017 New Revision: 324443 URL: https://svnweb.freebsd.org/changeset/base/324443 Log: cxgbetool(8): Do not close uninitialized fd on malloc failure. MFC after: 1 week Sponsored by: Chelsio Communications Modified: head/usr.sbin/cxgbetool/cxgbetool.c Modified: head/usr.sbin/cxgbetool/cxgbetool.c ============================================================================== --- head/usr.sbin/cxgbetool/cxgbetool.c Mon Oct 9 17:12:02 2017 (r324442) +++ head/usr.sbin/cxgbetool/cxgbetool.c Mon Oct 9 18:00:40 2017 (r324443) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710091800.v99I0evm001664>