HomeFreeBSD

cppcheck: resolve double free

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jan 23 2021, 12:17 AM
Parents
rG7454d2bb8d86: cppcheck: zpool_main.c possible null pointer dereference
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG6fc1ce07239f: cppcheck: resolve double free (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jan 27 2021, 12:12 AM