]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cppcheck: resolve double free
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 23 Jan 2021 00:17:16 +0000 (16:17 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 27 Jan 2021 00:12:02 +0000 (16:12 -0800)
commit6fc1ce07239f17a1262e87a334325d60da34d7a1
tree0b9b81433651114284aaee6051f581d170f25199
parent7454d2bb8d860bb49353c8b60dc980de82296f73
cppcheck: resolve double free

The double free reported for the realloc() failure branch is a
false positive.  It should be resolved in cppcheck 2.4 but for
the benefit of older versions we supress the warning.

    https://trac.cppcheck.net/ticket/9292

Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11508
lib/libefi/rdwr_efi.c