Date: Tue, 23 Feb 2016 23:09:46 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r295940 - head/sys/dev/acpica Message-ID: <201602232309.u1NN9kUF069357@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Tue Feb 23 23:09:45 2016 New Revision: 295940 URL: https://svnweb.freebsd.org/changeset/base/295940 Log: Silence PVS-Studio warning (V595). Modified: head/sys/dev/acpica/acpi_ec.c Modified: head/sys/dev/acpica/acpi_ec.c ============================================================================== --- head/sys/dev/acpica/acpi_ec.c Tue Feb 23 22:55:44 2016 (r295939) +++ head/sys/dev/acpica/acpi_ec.c Tue Feb 23 23:09:45 2016 (r295940) @@ -434,9 +434,7 @@ out: params->gpe_bit, (params->glk) ? ", GLK" : "", ecdt ? ", ECDT" : ""); device_set_desc_copy(dev, desc); - } - - if (ret > 0 && params) + } else free(params, M_TEMP); if (buf.Pointer) AcpiOsFree(buf.Pointer);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602232309.u1NN9kUF069357>